You are not logged in.
Pages: 1
I am thinking of switching from gentoo to arch but have a question regarding config file protection. Gentoo has a feature whereby the conf files in /etc are protected. When the package manager installs a new application which stores config files in /etc it maintains the current copy and gives the new config file a unique filename, allowing the admin to look it over and decide whether to go with the new one, or modify it to his/her liking. I know arch has "NoUpgrade" options, but if a file is not specified here, will Pacman simply overwrite old config files without warning?
Offline
No, the default and used way (the arch way) is to copy new config files under /etc with a suffix .pacnew. For example /etc/rc.local.pacnew.
Offline
For example /etc/rc.local.pacnew.
Correct, but rc.local is NoUpgrade by default. As far as I know, all NoUpgrade files will be overwritten without any warning.
Code should be free and hardware should be cheap.
Offline
detto wrote:For example /etc/rc.local.pacnew.
Correct, but rc.local is NoUpgrade by default. As far as I know, all NoUpgrade files will be overwritten without any warning.
On the contrary! All NoUpgrade files are NOT overwritten.
Offline
Thanks for the replies. Is there a simple way to prevent pacman from overwriting all config files in /etc? For instance, NoUpgrade = *.conf
Offline
the default behaviour is to not overwrite any config files. you don't need to specify NoUpgrade anymore.
Offline
true for system configs
but not for apps.... I know like sane wipes over gt68xx.conf every upgrade
[of course if you are clever you can add NoUpgrade = /etc/sane.d/gt68xx.conf to pacman.conf as stated!]
my2c
Mr Green
Offline
NoUpgrade options are left from previous Pacman versions. In that versions everything not in NoUpgrade list was saved as .pacsave and then overwritten with new version. Now Pacman's behaviour has changed, so it overwrites config files only if they were not modified by user. If config file was modified then it is not touched and new version is saved in .pacnew file.
See these historical bug reports:
http://bugs.archlinux.org/task/1925
http://bugs.archlinux.org/task/3620
http://bugs.archlinux.org/task/3644
to live is to die
Offline
woah!! ok
Mr Green
Offline
Pages: 1