LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 03-14-2007, 11:39 AM   #1
drokmed
Member
 
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, 05:59 AM   #2
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
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 06:01 AM.
 
  


Reply


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 06:33 PM
How do you uninstall/remove an rpm package? Plz Help! Gormless Linux - Newbie 3 10-23-2004 04:25 PM
how to remove/uninstall files/programs in red hat 9 sweet*amber Linux - Newbie 2 04-28-2004 07:42 AM
How can I know what RPM files installed by myself on RD9 and uninstall them preswang Linux - General 3 10-11-2003 01:05 AM
How do I remove/uninstall old libpcap? JasonW Linux - Networking 3 02-12-2003 08:06 AM


All times are GMT -5. The time now is 12:00 PM.

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