You are not logged in.
Is there any way to keep pacman (or other package managers that run as root) from overwriting a file in a directory where it would normally be overwritten? Without using the immutable flag (which only works on ext* filesystems)? I know this should strictly never be necessary, but if there is any way to render things read-only for root, I think it would be useful to know.
Offline
Pacman creates .pacnew files for the files in backup array:
[karol@black ~]$ sp -Qii initscripts
Name : initscripts
Version : 2011.07.3-1
URL : http://www.archlinux.org
Licenses : GPL2
Groups : base
Provides : None
Depends On : glibc bash grep coreutils udev>=171 iproute2 ncurses kbd findutils
sysvinit
Optional Deps : bridge-utils: Network bridging support
dhcpcd: DHCP network configuration
net-tools: legacy network support
wireless_tools: Wireless networking
Required By : None
Conflicts With : None
Replaces : None
Installed Size : 112,00 K
Packager : Tom Gundersen <teg@jklm.no>
Architecture : i686
Build Date : czw, 28 lip 2011, 14:42:30
Install Date : nie, 31 lip 2011, 09:14:39
Install Reason : Explicitly installed
Install Script : Yes
Description : System initialization/bootup scripts
Backup Files:
MODIFIED /etc/inittab
MODIFIED /etc/rc.conf
MODIFIED /etc/rc.local
UNMODIFIED /etc/rc.local.shutdown
UNMODIFIED /etc/conf.d/wireless
Offline
You can add files to NoUpgrade in pacman.conf and upgrades will be installed as .pacnew
Offline
Ah, thank you very much! Now I feel pretty stupid.
Offline