LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 03-22-2006, 10:54 AM   #1
Michael_aust
Member
 
Registered: Aug 2005
Location: Lancashire (United Kingdom)
Distribution: Debian Etch, on 686 machine.
Posts: 509

Rep: Reputation: 30
cleaning up my system of unneeded packages with apt-get


I have only just installed debian but im guessing after a while of installing and remove packages you end up with a few packages that are no longer needed at the present time because nothing depends on them. I was wondering if apt-get has anyway of cleaning up the system of unneeded libraries etc. Also is it safe to do?

Thanks in advance

Michael
 
Old 03-22-2006, 11:36 AM   #2
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 60
Read the APT Howto, specifically section 3.6.
 
Old 03-22-2006, 11:43 AM   #3
Michael_aust
Member
 
Registered: Aug 2005
Location: Lancashire (United Kingdom)
Distribution: Debian Etch, on 686 machine.
Posts: 509

Original Poster
Rep: Reputation: 30
thanks for that, i had already read about that cleaning out the chached .deb files. Im more meaning files that are actually still installed, for example say libfoofoofoo was not used by anything and nothing was dependent on it, is there any command I can issue that will clean my system out of these types of files, or is it worth keeping them on anyway?

Thanks again

Michael
 
Old 03-22-2006, 11:55 AM   #4
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 60
deborphan ...
 
Old 03-22-2006, 01:05 PM   #5
Michael_aust
Member
 
Registered: Aug 2005
Location: Lancashire (United Kingdom)
Distribution: Debian Etch, on 686 machine.
Posts: 509

Original Poster
Rep: Reputation: 30
is deborphan safe, or can it some times detect libraries that you want but that were not part of the actual dependencies of any program you have installed e.g. gstreamer-lame
 
Old 03-23-2006, 05:43 AM   #6
RanDrake10
Member
 
Registered: Oct 2004
Location: Florida
Distribution: Debian
Posts: 319

Rep: Reputation: 30
"localepurge" is another good program for cleaning out unused files on your system.
 
Old 04-02-2006, 10:29 AM   #7
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Lenny/Squeeze/Wheezy/Sid
Posts: 4,053

Rep: Reputation: 484Reputation: 484Reputation: 484Reputation: 484Reputation: 484
Just curious...

Why would you want to do that? I agree, it gives a nice cleaned up feeling, but it cannot concern more than tens or maybe a couple of hundred MBytes of disk space. (At with the current price per MB of hard disk space...)

Linux is not like *doze where more installed programs slow down the performance. (registry is cluttered, anti-virus searches bring the machine's performance to its knees...) If your program is not started in rc.S or rcn.d it really doesn't do anyhthing except taling up some space.

Actually, I stopped doing this a long time ago already unless I have to clone the installation to a disk < 4 GB. (Is there anyone elso out there using disks this small???)

Or are you afraid of future unnecessary dependency problems? If that is likely to happen, then it makes sense to purge orphaned packages. Dependency Hell is my only concern with Debian

jlinkels
 
Old 04-02-2006, 11:04 PM   #8
adssse
Member
 
Registered: May 2005
Distribution: Ubuntu, Jolicloud
Posts: 136

Rep: Reputation: 15
I agree that for most it is probably not anything to be too concerned about, but many just like to have their systems lean and only containing what they need. Also, I suppose there are some of us as you said still using ancient drives that may be able to free up enough to make it worthwhile (I currently have sarge on an old pc with a 2gb drive.)
 
Old 04-03-2006, 01:06 AM   #9
Crushing Belial
Member
 
Registered: Mar 2005
Location: University of Massachusetts - Lowell
Distribution: Ubuntu, Win 7 Pro, Win 7 Enterprise
Posts: 126

Rep: Reputation: 15
I had been looking for something similar to deborphan for awhile now, thanks for the tip.
 
Old 04-03-2006, 03:59 AM   #10
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
I'm using deborphan on stable for a long time and never had a problem.

On the other side, I have an sid debian on which from time to time deborphan has removed things that were needed. On this (bit broken) system I'm chaning a lot dependencies for test purpose so it's maybe related.

So my answer is no , it doesn't seem 100% safe in every case. Make some tests and see.
In any case you have a log in /var/log/dpkg.log to see what was uninstalled...
 
Old 04-03-2006, 05:09 AM   #11
Michael_aust
Member
 
Registered: Aug 2005
Location: Lancashire (United Kingdom)
Distribution: Debian Etch, on 686 machine.
Posts: 509

Original Poster
Rep: Reputation: 30
I know having unused libraries doesnt cause any problems or slow down, i was just wanting to have a clean system with only bits I need installed. So far deb orphan is working ok. I just isse the deborphan command then use synaptic to look at thedesriptions of the the package does. AT present its only wanting to remove on package gstreamer-lame but nothing is dependent on that in my system so im guessing that why its shwing up.

Im not upgrading from sid just etch.
 
Old 04-03-2006, 10:28 AM   #12
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
I think there is the same in aptitude, can't remember where, in the menus somewhere hidden
 
Old 04-03-2006, 04:45 PM   #13
adssse
Member
 
Registered: May 2005
Distribution: Ubuntu, Jolicloud
Posts: 136

Rep: Reputation: 15
There is also debfoster, but I still stick with deborphan
 
Old 04-04-2006, 02:23 AM   #14
vharishankar
Senior Member
 
Registered: Dec 2003
Posts: 3,142
Blog Entries: 4

Rep: Reputation: 121Reputation: 121
gtkorphan is a gui front-end for deborphan.
 
  


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
cleaning up. Removing packages that are unnecessary. microsoft/linux Debian 6 10-20-2005 10:35 AM
apt-get packages curly08 Debian 3 05-04-2005 06:46 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 system? JimDog Linux - Newbie 4 09-17-2003 08:32 AM


All times are GMT -5. The time now is 09:11 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