LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 02-08-2011, 02:47 AM   #1
jamesac
LQ Newbie
 
Registered: Feb 2011
Posts: 10

Rep: Reputation: 0
Debian puts the squeeze on me: /usr filled up!


I have just upped from lenny to squeeze. I didn't mean to, really, but the package manager was well into its stride by the time I realised what was happening.

Mostly all went well, BUT /usr is now 100% full. I notice that there are duplicate files in /usr/lib, eg Oct 11 22:35 libgcj.so.10.0.0 and Sep 14 2008 libgcj.so.90.0.0 (I assume the latter has been replaced by the former?). Is it safe to remove the "outdated" lib files? Is there an elegant way of doing it?

Cheers.
 
Old 02-08-2011, 07:43 AM   #2
jamesac
LQ Newbie
 
Registered: Feb 2011
Posts: 10

Original Poster
Rep: Reputation: 0
UPDATE:

So I did a bit of reading, and discovered that there is a utility deborphan that shows, err, orphaned libs. So I installed it using apt-get install deborphan.

As apt-get was doing its stuff, it displayed:
"The following packages were automatically installed and are no longer required:

libchipcard-libgwenhywfar47-plugins libswfdec-0.6-90 libfreebob0 [...]
...Use 'apt-get autoremove' to remove them.

So, I did apt-get autoremove, and lo and behold, around 170 MB of stuff was cleaned up from /usr/lib.

So that seems to have sorted that.
 
Old 02-08-2011, 07:53 AM   #3
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Yes deborphan is useful. I tend to pipe it's output to aptitude (or apt-get if you prefer) for purging orphaned packages and configuration files.

e.g. (use at your own risk - though is only a simulation (-s))

Code:
deborphan | xargs aptitude -s purge
deborphan --find-config | xargs aptitude -s purge
It's always a good idea to run the commands first to see what will be removed.

Code:
deborphan
deborphan --find-config
You may see packages that you've install manually (with dpkg) among the output - i.e. wine. You can set up deborphan to ignore these (otherwise they'll get removed). Read it's man page for more info:

Code:
man deborphan

Last edited by cynwulf; 04-16-2011 at 11:29 AM. Reason: finally fixed typos
 
1 members found this post helpful.
Old 02-08-2011, 09:06 AM   #4
jamesac
LQ Newbie
 
Registered: Feb 2011
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks very much for your help.
 
Old 02-08-2011, 11:51 PM   #5
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
You can also try:
aptitude purge ~c

and perhaps:
apt-get install localepurge
 
  


Reply



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
Debian Squeeze unknown96 Debian 18 12-03-2010 01:11 PM
LXer: Goodbye Fedora, welcome back Debian, Part 2: Review of Debian Squeeze LXer Syndicated Linux News 0 12-02-2010 09:00 AM
LXer: Recall proposal puts Debian leader in dunc-tank LXer Syndicated Linux News 1 09-22-2006 03:09 PM
LXer: French copyright law puts squeeze on open source LXer Syndicated Linux News 1 07-29-2006 08:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:35 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
Open Source Consulting | Domain Registration