You are not logged in.
Hi,
I am trying to access the .pacnew config files provided by a package I already updated to the most recent version. The problem is that I accidentally removed the newer configuration file from that package and want it to be reinstalled as .pacnew so I can merge it with the existing one.
Background: My /etc/profile is messed up right now so I want the newest version from the "filesystem" package.
Kind regards
Leberkaese
Offline
The package should still be in your cache (/var/cache/pacman/pkg/), you can extract the file from there.
Offline
Thanks, that worked. Although, I hoped for a builtin command for pacman to automatically install the .pacnew file as it does on upgrading.
Offline
foo.pacnew is simply foo in the package if foo on the filesystem has been modified from what pacman wants to install. Anyway, do as Scimmia suggested and if foo on the filesystem is different from foo in the package, you'll get a foo.pacnew.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
only partially correct, graysky, it only installs a pacnew file if it's also different from the file in the package that's currently installed. The only way I can think of to get another pacnew file would be down downgrade the package then upgrade it again, giving you a pacnew file each time.
Easier to just extract it.
Offline