You are not logged in.
Hi, is there any way to reinstall a package which would be equivalent to:
pacman -Rn package
pacman -S packageSo old config files would be replaced? I know I can just manually delete the files, but I'm just curious
I didn't find anything in the pacman/pacmanTips wiki.
bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U
Offline
If the config files are part of the package (like example configs inside /etc) then reinstalling the package should overwrite it or at least create a pacsave/pacnew. If the config files are inside $HOME, they will not be touched at all. They must manually be deleted.
Offline
If the config files are part of the package (like example configs inside /etc) then reinstalling the package should overwrite it or at least create a pacsave/pacnew. If the config files are inside $HOME, they will not be touched at all. They must manually be deleted.
This doesnt happen for any 'backed up' config files for packages as defined in the PKGBUILD (I think?).
For example, I want to reinstall pulseaudio and get fresh config files, just running
pacman -S pulseaudiodoes not create pacsave/pacnew files, the old config file in /etc just remains and is used by the new install of pulse.
Last edited by jrussell (2013-04-20 17:22:20)
bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U
Offline
Have you read this page:
Offline
You don't need to reinstall the package.
Pacman archives are just compressed tar, so it is easy to copy just that file by yourself.
For example
mkdir /tmp/pulse
cd /tmp/pulse
tar xf /var/cache/pacman/pkg/pulse...
cp /tmp/pulse/etc/... /etc/...Offline
Have you read this page:
Yes, I know how pac files work, perhaps I didnt phrase my question properly, I would like to know if there is a pacman argument/command that I could use when re installing a package which would overwrite any config file (that would otherwise be left alone during a reinstall) for that package.
I know I could just copy it out of the cache, but I just want to know if there is some way pacman could do it ![]()
bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U
Offline
Ahh, the best place to look for that, of course, is the man page.
On a related note, using that argument (if it exists) would be an awful idea. Pacman uses .pac{new,save} files for a very good reason. Blindly overwriting those files could easily break something.
All the best,
-HG
Offline