I tend to install a lot of stuff on my Ubuntu machines. Much of this I do for curiosity and then report it here. This means that not only do I get to check out lots of interesting stuff, but my machines also start getting cluttered with stale files, old versions and orphaned files.
Here are two quick ways to help clean up your system.
First, you can use a built in apt-get feature called autoclean. Open a terminal session and type:
This will rid your system of partial packages and mucked up .deb downloads and can free up a suprising amount of space.Code:sudo apt-get autoclean
Another great tool is a package called Deborphan. You can either install this through Synaptic or again in a terminal session type:
Once it's installed, you can run it to list all of your orphaned packages. Think of them as packages that no longer serve a purpose and are not needed or used on your machine. Once you get a list, you can use apt-get to remove them.Code:sudo apt-get install deborphan
Now you've saved yourself some space.Code:sudo deborphan | xargs sudo apt-get -y remove --purge
Thanks for the nice tips. I have Ubuntu 8.04 and it's getting pretty stuffed sometimes![]()
easy command, thanks for the tip, ill be trying this out after i backup my files.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks