If you want to clean up your Ubuntu or Debian machine and delete unnecessary (orphaned) deb packages you can use utility deborphan. It finds packages that have no packages depending on them. The default operation is to search only within the libs and oldlibs sections to hunt down unused libraries.
Install deborphan with command sudo apt-get install deborphan and then let’s proceed with cleaning up. To delete unnecessary libraries just execute:
sudo deborphan | xargs sudo apt-get -y remove --purge
To delete unnecessary data packages use command:
sudo deborphan --guess-data | xargs sudo apt-get -y remove --purge
To see all packages which aren’t required by any others use command
deborphan --guess-all
At my Ubuntu laptop I’ve got the following output:
gstreamer0.10-plugins-bad-doc
libusb-dev
libgstreamer-perl
gstreamer0.10-plugins-bad-dbg
gstreamer0.10-plugins-good-doc
...
libgstreamer-gconf0.8-dev
gstreamer0.10-gnonlin-dev
gstreamer0.10-plugins-ugly-multiverse-dbg
gstreamer0.10-plugins-base-dbg
gstreamer0.10-plugins-ugly-doc
libxcomposite-dev
There is another tool to delete orphaned packages, it’s GtkOrphan (sudo apt-get install gtkorphan) that does the same as deborphan but is built as graphical application. Once it’s installed go to System –> Administration –> Remove Orphaned Packages, enter your password and proceed with cleaning up.
Another nice tip is to clean partial and orphaned packages by commands:
sudo apt-get autoclean
sudo apt-get autoremove
Information improvisation: You can check out our latest http://www.braindumps.com/312-50v8.htm and http://www.pass4-sure.us/100-101-dumps.html written by our certified teams to help you pass http://www.test-king.com/exams/300-135.htm You can also purchase https://www.isc2.org/ . Our http://www.actualtests.com/exam-300-135.htm Best Wishes.
Just always use aptitude instead of apt-get, and you won't have to..
Hi Kevin,
You're right, actually I recommend aptitude too, but there are people who use apt-get still. This is primarily for them :)
Thanks for comment!
Starting with the edgy, aptitude and apt-get has the same functionality when you consider the dependency removal.
Great little how-to... Worked great and really cleaned my system out.
sudo apt-get install deborphan; sudo deborphan | xargs sudo apt-get -y remove --purge
worked and it removed 46 packages and obtained 16.6MB of free disk space on my computer (Xubuntu Lucid.) Thanks ;-)
Pingback : Limpando linux | Hacker Supremos
Brilliant blog. I found your post very interesting, I think is a brilliant writer. I added your blog to my favorites and will return in the future.
Pretty nice post. I just stumbled upon your weblog and wanted to say that I've really enjoyed browsing your blog posts. After all I’ll be subscribing to your feed and I hope you write again soon!
I’ve not too long ago started a weblog, the information you present on this site has helped me tremendously. Thank you for all of your time & work.
Thanks for taking the time to debate this, I really feel strongly about it and love learning more on this topic. If potential, as you gain expertise, would you mind updating your blog with additional information? This can be very useful for me.
Hi, I used to be looking by way of the web site trying to find some data and arrived through your weblog. I am amazed by the data that you have on this site. It displays how nicely you comprehend this subject. Saved this internet web page, should come back once more for long term. You, my good friend, ROCK!!!
Pingback : Anonymous
I still show a bunch of packages using "--guess-all" that are still hanging around. Any suggestion for getting rid of those?