You are not logged in.
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
Uninstall just apache then.
Offline
pacman -Rdd apache
is the magic command, apparently, to only remove apache and not dependent packages. (Thanks for the hint.)
Offline
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 Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline