Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-14-2007, 10:39 AM   #1
Registered: Dec 2005
Location: St Petersburg, FL, USA
Posts: 219

Rep: Reputation: 30
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.
Old 03-15-2007, 04:59 AM   #2
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
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.

Last edited by reddazz; 03-15-2007 at 05:01 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get remove package-name & config files robbbert Linux - Software 2 04-20-2006 05:33 PM
How do you uninstall/remove an rpm package? Plz Help! Gormless Linux - Newbie 3 10-23-2004 03:25 PM
how to remove/uninstall files/programs in red hat 9 sweet*amber Linux - Newbie 2 04-28-2004 06:42 AM
How can I know what RPM files installed by myself on RD9 and uninstall them preswang Linux - General 3 10-11-2003 12:05 AM
How do I remove/uninstall old libpcap? JasonW Linux - Networking 3 02-12-2003 07:06 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:08 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration