LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   can rpm remove config files during uninstall? (https://www.linuxquestions.org/questions/linux-software-2/can-rpm-remove-config-files-during-uninstall-537423/)

drokmed 03-14-2007 10:39 AM

can rpm remove config files during uninstall?
 
or can a re-install restore config files back to default?

I've accidentally broken various programs, and an uninstall/re-install doesn't restore them to defaults.

Is there a way when you remove a program with rpm, to have it remove ALL config files as well?

For example, two applications I've broken and can never seem to fix are apache server and ldap server. I end up wiping the hard disk, and re-installing from scratch argh! I'm sure I'm missing something, but I haven't found it yet.

reddazz 03-15-2007 04:59 AM

RPM renames and saves config files if they have been changed since initial installation. What you can do is just run "rpm -qc packageName" which will show you which configuration files were installed on your system by an rpm. When you have uninstalled the rpm, you can search on your system if any of the files or their backups remain on your system and remove them manually.


All times are GMT -5. The time now is 05:41 AM.