Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Why are rebuilt packages overwritten by 'apt upgrade'?
-
- Posts: 6
- Joined: 2018-11-20 09:20
Why are rebuilt packages overwritten by 'apt upgrade'?
Hi,
I decided to build packages by myself with new compiler flags to optimize and found it was rather easy. I just write ~/.config/dpkg/buildflags.conf and build source packages. Then install (replace) them.
However, when invoking "apt upgrade", the replaced packages are overwritten by the original packages which are downloaded again. How can I stop it?
Thanks in advance!
I decided to build packages by myself with new compiler flags to optimize and found it was rather easy. I just write ~/.config/dpkg/buildflags.conf and build source packages. Then install (replace) them.
However, when invoking "apt upgrade", the replaced packages are overwritten by the original packages which are downloaded again. How can I stop it?
Thanks in advance!
-
- Posts: 6
- Joined: 2018-11-20 09:20
Re: Why are rebuilt packages overwritten by 'apt upgrade'?
I had been using gentoo for nearly 10 years, but now I am using encrypted disks. So Gentoo is very difficult to install and I abandoned.
Now I solved my problem. I found https://www.tecmint.com/disable-lock-bl ... ebian-apt/, which mentioned how to blacklist specified packages. But now I wonder how I can find blacklisted packages are newly updated in the distribution.....
Now I solved my problem. I found https://www.tecmint.com/disable-lock-bl ... ebian-apt/, which mentioned how to blacklist specified packages. But now I wonder how I can find blacklisted packages are newly updated in the distribution.....
-
- Posts: 6
- Joined: 2018-11-20 09:20
Re: Why are rebuilt packages overwritten by 'apt upgrade'?
oh, my mistake??
Somehow, some blacklisted packages can be upgraded....others are blocked...why? It doesn't seem to work.
Somehow, some blacklisted packages can be upgraded....others are blocked...why? It doesn't seem to work.
Re: Why are rebuilt packages overwritten by 'apt upgrade'?
Going nuts, told ya ...
In Gentoo everything becomes super easy as soon as you understand how it works. Encryption included.
Edit: I lost the fight with "supercow" (apt-get), may you have better success!
In Gentoo everything becomes super easy as soon as you understand how it works. Encryption included.
Edit: I lost the fight with "supercow" (apt-get), may you have better success!
Re: Why are rebuilt packages overwritten by 'apt upgrade'?
AFAIK if you rebuild a package you have to change the version number/label so that apt et al. will consider it newer than the package version currently in the repository.maverick6664 wrote:Hi,
I decided to build packages by myself with new compiler flags to optimize and found it was rather easy. I just write ~/.config/dpkg/buildflags.conf and build source packages. Then install (replace) them.
However, when invoking "apt upgrade", the replaced packages are overwritten by the original packages which are downloaded again. How can I stop it?
Thanks in advance!
Of course, if a new version comes up, then the version number might be higher than what you have, so apt will want to replace it -- but anyway you will (probably) also want to rebuild your custom package based on the latest version..
-
- Posts: 6
- Joined: 2018-11-20 09:20
Re: Why are rebuilt packages overwritten by 'apt upgrade'?
It's a nice idea! Yes, I want to know when the new version comes out, so that I can build my own customized one.AFAIK if you rebuild a package you have to change the version number/label so that apt et al. will consider it newer than the package version currently in the repository.
Of course, if a new version comes up, then the version number might be higher than what you have, so apt will want to replace it -- but anyway you will (probably) also want to rebuild your custom package based on the latest version..
Thank you very much!!
EDIT: BTW as for Gentoo, I am fed up with their policy that they are providing both openrc and systemd options and Gentoo has a lot of web pages describing encryption and uefi, some of which are too old. And some packages are old. So I've abandoned.
Re: Why are rebuilt packages overwritten by 'apt upgrade'?
this should be helpfulmaverick6664 wrote:It's a nice idea! Yes, I want to know when the new version comes out, so that I can build my own customized one.AFAIK if you rebuild a package you have to change the version number/label so that apt et al. will consider it newer than the package version currently in the repository.
Of course, if a new version comes up, then the version number might be higher than what you have, so apt will want to replace it -- but anyway you will (probably) also want to rebuild your custom package based on the latest version..
Thank you very much!!
EDIT: BTW as for Gentoo, I am fed up with their policy that they are providing both openrc and systemd options and Gentoo has a lot of web pages describing encryption and uefi, some of which are too old. And some packages are old. So I've abandoned.
Desktop: A320M-A PRO MAX, AMD Ryzen 5 3600, GALAX GeForce RTX™ 2060 Super EX (1-Click OC) - Sid, Win10, Arch Linux, Gentoo, Solus
Laptop: hp 250 G8 i3 11th Gen - Sid
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid
Laptop: hp 250 G8 i3 11th Gen - Sid
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid
-
- Posts: 6
- Joined: 2018-11-20 09:20
Re: Why are rebuilt packages overwritten by 'apt upgrade'?
Thanks. But I found adding "a" or any alphabet or string after the version number manually worked. "a" is easy.milomak wrote: this should be helpful
Regards,
-Tetsuji
Re: Why are rebuilt packages overwritten by 'apt upgrade'?
In an era of RPM "dependency hell" Debian offered relief with apt-get. The Debian advantage has always been its package management. Even its stability is a function of its package management. Of course, every solution generates new problems. I use the following when I want to hold a package.
Code: Select all
# apt-mark hold <package-name>
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: Why are rebuilt packages overwritten by 'apt upgrade'?
Add an epoch to the version for your package:maverick6664 wrote:when invoking "apt upgrade", the replaced packages are overwritten by the original packages which are downloaded again. How can I stop it?
https://www.debian.org/doc/debian-polic ... ml#version
deadbang
-
- Posts: 6
- Joined: 2018-11-20 09:20
Re: Why are rebuilt packages overwritten by 'apt upgrade'?
Oh, nice idea!Head_on_a_Stick wrote:Add an epoch to the version for your package:maverick6664 wrote:when invoking "apt upgrade", the replaced packages are overwritten by the original packages which are downloaded again. How can I stop it?
https://www.debian.org/doc/debian-polic ... ml#version
Thanks, Head_on_a_Stick!!
And Segfault, I found a good way to use Gentoo; I am using VMware. So I'll install Gentoo on it, w/o encryption. Very easy!!
Regards,
-Tetsuji