You are not logged in.

#1 2007-06-07 09:38:51

smurfd
Member
Registered: 2007-06-07
Posts: 8

how does pacman handle configs?!

Hi!

so i am not a archlinux user yet, well ive tried it a little.
But before i throw it in on any of my boxes, i wanna know something...

how does Pacman handle config files upon a packages upgrade?

say, you have a package which contains a /etc/foo.conf which you have edited alot.

what happens to it when you upgrade your package?
is it the debian-approach, merge best way possible, or is it gentoo approach, edit it yourself?

tnx in advance!

Last edited by smurfd (2007-06-07 09:39:12)

Offline

#2 2007-06-07 09:43:58

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: how does pacman handle configs?!

if foo.conf belongs to package foo, use pacman -Qii foo to check if foo.conf is in Backup files.
If it isn't in backup files, foo.conf will be overwritten. (To prevent this, add NoUpgrade = etc/foo.conf in pacman.conf)
If it is in backup, the new config file will be extracted as /etc/foo.conf.pacnew , and you'll have to merge it yourself.


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

Board footer

Powered by FluxBB