LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 11-25-2009, 09:13 PM   #1
zoomzilla
LQ Newbie
 
Registered: Nov 2009
Posts: 27

Rep: Reputation: 0
Which files are safe to delete?


I'm trying to keep my system as clean and slimmed down as possible and I was wondering what files are safe to delete after I've downloaded software. Also, In just a few days I've accumulated several dozen megs of software just from software packages for programs and plugins I need. It's only logical to assume that these will keep accumulating and I can see that becoming a problem. Is there a program I can install that get rid of the the outdated versions of these programs and plugins? Any help is greatly appreciated.
 
Old 11-25-2009, 10:15 PM   #2
splunk
Member
 
Registered: Jan 2007
Location: PA, USA
Distribution: Ubuntu Jaunty (9.04)
Posts: 31

Rep: Reputation: 16
More details please

1) What distro are you using (Ubuntu, openSUSE, Mandriva, one of the others)?

2) Are you downloading the software from the internet or using the package manager?
 
Old 11-25-2009, 10:27 PM   #3
zoomzilla
LQ Newbie
 
Registered: Nov 2009
Posts: 27

Original Poster
Rep: Reputation: 0
I'm using fedora and using the package manager right now but trying to download from third party sites, but having some difficulty. I get rejected when I try to use the command line and I think it's because I dont have the proper package to allow those downloads to install. Does that sound right? Is it possible to download stuff from third party sites without using the command line. From some of the reading I've done it looks like RPM's could be an option.
 
Old 11-25-2009, 11:12 PM   #4
splunk
Member
 
Registered: Jan 2007
Location: PA, USA
Distribution: Ubuntu Jaunty (9.04)
Posts: 31

Rep: Reputation: 16
I usually run 'yum clean all' once a month or so to get rid of the leftovers from installing and removing stuff using the package manager.

There is also a program called 'package-cleanup'. I haven't used it though.

Open a terminal window and type 'su - package-cleanup' and enter the root users password.

If the program is installed, you should get a quick list of usage options. If you get an error that says program not found, you can install it via 'yum install yum-utils'.

When downloading from third party sites, you should be able to download the rpm file by clicking on the download link in which ever web browser you use.
 
1 members found this post helpful.
Old 11-25-2009, 11:17 PM   #5
zoomzilla
LQ Newbie
 
Registered: Nov 2009
Posts: 27

Original Poster
Rep: Reputation: 0
Thanks, that's really helpful info. I'll give it a try.
 
Old 11-26-2009, 06:18 AM   #6
pcunix
Member
 
Registered: Dec 2004
Location: MA
Distribution: Various
Posts: 149

Rep: Reputation: 23
When I come across something I'm not sure about, I first look at "ls -lut" to see when it was last accessed and then use "lsof" to see if anything is using it now. Of course I'll Google it too see if that helps identify what it is for. Tools like rpm's "--whatprovides" option can also be very helpful.

If for some reason I'm still not sure, I'll rename it "is.originalname.junk" and see what happens over time - being sure to include a reboot, of course. If nothing breaks, it looks safe to remove or is easy to put back if it was needed for some obscure reason.
 
Old 11-26-2009, 06:39 AM   #7
shpenat
Member
 
Registered: Dec 2008
Distribution: LFS
Posts: 95

Rep: Reputation: 21
It pretty much depends on what you mean by "as clean and slimmed down as possible"

If you are referring to standard cleaning in the boundary of your distro, tahan your package manager should do. See and follow hints posted by guys above.

But if you mean HARDCORE cleaning, than it's more complicated. You can remove debugging symbols from your executables and libraries, you can compress or even remove man and info pages, you even can manually remove libraries you are sure you will never use. But all of this requires good knowledge of what exactly are you doing and why.
 
  


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
Is it safe for me to delete the MBR on my HDD? Vegetaman Linux - General 11 10-13-2007 08:24 PM
Is it safe to delete the contents of /tmp? tramni1980 Slackware 19 01-15-2007 02:39 PM
Safe to delete mail file? svenger Linux - General 6 12-31-2006 12:24 PM
What is safe do delete in slack9? kleptophobiac Slackware 10 08-13-2003 09:30 PM
Is it safe to delete default nobody user? dunkyb Linux - General 2 03-16-2003 12:38 PM


All times are GMT -5. The time now is 11:29 PM.

Main Menu
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