Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 02-08-2011, 03:47 AM   #1
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 and Sep 14 2008 (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?

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

Original Poster
Rep: Reputation: 0

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, 08:53 AM   #3
Senior Member
Registered: Apr 2005
Location: Walsall, England
Posts: 1,977
Blog Entries: 5

Rep: Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022
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))

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.

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:

man deborphan

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

Original Poster
Rep: Reputation: 0
Thanks very much for your help.
Old 02-09-2011, 12:51 AM   #5
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


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

All times are GMT -5. The time now is 10:40 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration