Historical bug tracker for the Pacman package manager.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
FS#1925 - pacman -U overwrites NoUpgrade files
Attached to Project:
Pacman
Opened by dtw (dibblethewrecker) - Wednesday, 22 December 2004, 10:01 GMT
Last edited by Judd Vinet (judd) - Wednesday, 29 December 2004, 17:35 GMT
Opened by dtw (dibblethewrecker) - Wednesday, 22 December 2004, 10:01 GMT
Last edited by Judd Vinet (judd) - Wednesday, 29 December 2004, 17:35 GMT
|
DetailsWhen using pacman -U the files marked as NoUpgrade in pacman.conf appear to be ignored.
In the following situation a user may inadvertantly lose all of his/her config files pacman -U initscripts-custom files are backed up to .pacsave ok but ARE overwriten - even if rc.conf is marked NoUpgrade if they then do pacman -U initscripts the new files from initscripts-custom are backed up to pacsave and the originals are lost - the user has assumed his/her custom ones are ok becasue they are marked NoUpgrade, when, in fact, they are now gone. |
This task depends upon
Closed by arjan timmerman (blaasvis)
Sunday, 26 March 2006, 10:34 GMT
Reason for closing: Fixed
Additional comments about closing: 2.9.8 will look if you changed a file with md5, so no upgrades by default ;)
Sunday, 26 March 2006, 10:34 GMT
Reason for closing: Fixed
Additional comments about closing: 2.9.8 will look if you changed a file with md5, so no upgrades by default ;)
thanks.
i think pacsave.1 then .pacsave.2 - is a good idea but could get messy
>>>> At the VERY least it should ask user confirmation to overwrite ANY file in /etc
i think that is a good point BUT pacman DOES tell you when it moves files around
How is a program "telling you" that it is doing something wholley wrong helpful ? It is one line in pages and pages of output when doing a full --sysupgrade. The point is that it should NEVER overwrite a custom configuration file with a distro stock config file. There is *no* sense in doing this. It is *never* a good idea. Anyone that has configured their system custom, does not want it being overwritten when they keep their system up-to-date.
It is one of the biggest things setting Arch Linux back from being a usable server distro -- I can't imagine any server operator trusting a distro that erases their absolutely vital config files, just for the hell of it.
mv /etc/php.ini{.pacnew,}
http://dtw.jiwe.org/share/pacman_errors.rtf
I think that says it all - it is the -U that is the problem
http://dtw.jiwe.org/share/pacman_errors_new.txt
I think a less aggressive logic when upgrading packages might be:
if config file is stock, overwrite it, otherwise install new config file as <file>.pacnew
IMHO, this is a very sane way of handling this, allowing pacman to roll out new default settings to people that use them, but leaving custom configs alone when they have been put in place by the admin.
Yes, I agree, that is the sensible and sane way to do it.
http://bugs.archlinux.org/task/3644