You are not logged in.

#1 2014-03-24 20:22:56

jernst
Member
From: Silicon Valley
Registered: 2014-03-04
Posts: 303
Website

Pacman command to re-install config files to pristine condition?

I've messed up my Apache config files under /etc/httpd/...
Is there a magic pacman command that will restore those files to their pristine condition as if it was a new installation?
I've considered uninstalling apache and re-installing, but that will also uninstall all dependent packages, and I'd rather not do that.

Offline

#2 2014-03-24 20:26:47

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Pacman command to re-install config files to pristine condition?

Uninstall just apache then.

Offline

#3 2014-03-24 20:31:28

jernst
Member
From: Silicon Valley
Registered: 2014-03-04
Posts: 303
Website

Re: Pacman command to re-install config files to pristine condition?

pacman -Rdd apache
is the magic command, apparently, to only remove apache and not dependent packages. (Thanks for the hint.)

Offline

#4 2014-03-24 20:36:09

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: Pacman command to re-install config files to pristine condition?

If you re-install the package it should create .pacnew files for all of the altered configuration files. If that is all that you have changed then overwriting the altered files with the .pacnew files will undo your changes.

You may also find pkg-extract_original useful.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

Board footer

Powered by FluxBB