You are not logged in.
Pages: 1
Hi. I was reinstalling the arch linux and during the first major updates via pacman, I found that it installed several conf files as well. For example,
warning: /etc/fstab installed as /etc/fstab.pacnew
warning: /etc/profile installed as /etc/profile.pacnew
and so on
Does that mean the pacman didn't replace old ones? or am I supposed to replace them as needed?
Last edited by ssacong (2008-02-15 16:24:10)
Offline
If you have made no changes to a config file, then you can safely replace it with the new one. Otherwise, you will need to compare the pacnew files with your existing config files and move the pacnew changes to your config. Emacs has a nice diff utility, it's what I use. Vim may have something similar. If you're not a wizzard with either yet, you can run the diff command to view the differences. Here's one of mine:
$ diff fstab fstab.pacnew
7a8,10
> /dev/cdrom /media/cd iso9660 ro,user,noauto,unhide 0 0
> /dev/dvd /media/dvd udf ro,user,noauto,unhide 0 0
> /dev/fd0 /media/fl vfat user,noauto 0 0
9,13d11
< /dev/cdrom /mnt/cdrom iso9660 ro,user,noauto,unhide 0 0
< /dev/dvd /mnt/dvd udf ro,user,noauto,unhide 0 0
< /dev/sda8 / ext3 defaults 0 1
< /dev/sda5 /home ext3 defaults 0 1
< /dev/sda9 swap swap defaults 0 0I run this command often to make sure I haven't missed something:
ls /etc/*pac*
Offline
Thanks for reply. one more quesiton tho. I have noticed that the Modules section in new rc.conf.pacnew file has empty list. Am i supposed to copy and paste the modules from old one? or is that because they are loaded automatically due to some updates now?
Offline
You have to copy the modules back the way you want them.
Offline
Pages: 1