You are not logged in.

#1 2020-09-26 19:06:59

Leberkaese
Member
Registered: 2020-09-26
Posts: 2

Reinstall .pacnew files from repo

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

#2 2020-09-26 19:10:37

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,559

Re: Reinstall .pacnew files from repo

The package should still be in your cache (/var/cache/pacman/pkg/), you can extract the file from there.

Offline

#3 2020-09-26 19:15:59

Leberkaese
Member
Registered: 2020-09-26
Posts: 2

Re: Reinstall .pacnew files from repo

Thanks, that worked. Although, I hoped for a builtin command for pacman to automatically install the .pacnew file as it does on upgrading.

Offline

#4 2020-09-26 19:18:08

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: Reinstall .pacnew files from repo

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 packagesZsh and other configs

Offline

#5 2020-09-26 19:21:51

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,559

Re: Reinstall .pacnew files from repo

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

Board footer

Powered by FluxBB