Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-16-2003, 10:29 AM   #1
Registered: Aug 2003
Location: Colorado, USA
Distribution: Fedora Core
Posts: 100

Rep: Reputation: 15
Cleaning system?

When I installed RH9 several months ago I was so excited that I went for the full install (including source for most things). I wasn't really sure what I'd need/like and not need/like so I said what the heck.

Well after finally getting Gnome 2.4 installed last night I realized that I am really filling my HD quickly and I need to start "cleaning up".

Question is what's the best way to approach this:

1. "rpm -e" everything you can and don't need?

2. Manually "rm -f" old libs, files etc (scary thought)?

3. Backup important stuff and re-install RH9 but this time with only those things I now know I need?

4. Or some other better way that I haven't even thought of (being a newbie and all).

I know that with Windows I used to just open up control panel and start un-installing all the crap I had installed/demo'd/tried in the past several months and no longer needed. And then of course did a defrag (no need for that now :-)

Old 09-16-2003, 10:42 AM   #2
Senior Member
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,759

Rep: Reputation: 78
Number 3. Of course I re-install OS's all the time.
Old 09-16-2003, 10:44 AM   #3
Registered: Sep 2003
Location: Iowa
Distribution: Slackware 9.1
Posts: 155

Rep: Reputation: 30
I would definitly say that rpm -e <package name> would be by far the safest way to go. I would avoid manually taking out files by rm -f if at all could get yourself into a world of hurt.

If it is something that you compiled from source that you want to remove, it is pretty easy if you put them in /usr/local/src. This is a good idea b/c you can then remove the files from /usr/local/bin, /usr/local/lib and so on very cleanly. RPM's are great for the fact that they are so easy to install and uninstall without having to worry about removing a file that is needed by another package
Old 09-17-2003, 07:50 AM   #4
Registered: Aug 2003
Distribution: Dead Rat
Posts: 191

Rep: Reputation: 56
I also recommend reinstalling, personally, because it's a good learning experience (the Red Hat installer has package descriptions for every piece of software, and tracks dependencies among them).

But you don't have to do that if you don't want to.

The command "rpm -qa|grep devel" will give you a list of development libraries - you can get rid of all of them if you are not planning on doing code development on the box. "rpm -qa|grep compat" will list compatibility libraries, same comment applies.

If it's a standalone machine you can lose anything that starts with yp -- "rpm -qa |grep ^yp" will list those. And you can kill anything to do with nfs or the portmapper... and all the berkeley r-services are evil, so you can rpm -e rsh rsh-server.

There's a good start for you, anyway. But I'd reinstall.
Old 09-17-2003, 08:32 AM   #5
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
i agree, i think that although it's technically possible to "rpm -e" everything you don't want, it's more feasible to re-install with only the things that you DO want...

on a side note, if you're really into the "feeling" of going into the windows control panel and add/remove stuff, you might like mandrake's control center... here's a screenshot of a piece of it... it lets you install/uninstall/update (among other things) with a few mouse clicks...

i might be trippin' but i think red hat comes with a nice gui for rpm... i'm not sure... if they do i'm sure someone will post it for you...


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
Cleaning up an old PC Merlyn Linux - Hardware 8 10-25-2005 06:33 AM
Cleaning out wine Maze the Kid Linux - Software 0 01-17-2005 02:28 PM
Cleaning the system kapslock Linux - Newbie 1 07-11-2004 09:33 PM
Cleaning the system fenice1976 Linux - Software 2 05-16-2004 07:31 PM
cleaning up? phonecian Linux - Software 1 10-19-2003 06:27 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:38 AM.

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