Linux compare

The five best Linux file system cleaning tools

In honor of National Clean up Your Computer month, here some top picks for Linux system cleaners.

You've heard all about the Windows cleaning tools -- on every level. What you haven't heard of nearly as much are tools to help clean up the Linux file system. Believe it or not, they do exist, and I want to introduce you to them. Some you may have heard of, some are functions within tools you already know, and some are just plain obscure. Regardless, each of these tools will help you keep your Linux file system clean.

1: Synaptic

There is a feature within Synaptic (it's actually built into apt and many other package managers as well) that allows you to get rid of residual configuration files. These files are usually dependency packages left behind when you uninstall a package from your machine. This tool is incredibly easy to use. Just click on the Status button (in the bottom-left corner). Next, click on the Residual Config listing in the upper-left pane. Now, select the config files you want to remove in the upper-right pane and click Apply to remove them. Easy.

2: BleachBit

BleachBit is a handy tool that will clean up disk space as well as guard your privacy. It's available for both Linux and Windows. BleachBit will free various caches, delete cookies, clear Internet history, shred temporary files, delete logs, and discard various types of junk you probably weren't even aware was on your system. BleachBit has an outstanding GUI that allows you to easily choose what you want it to clean. Instead of just picking files or file types, you go through a tree and select types from app and system listings. You can also dictate which drives or directories BleachBit cleans and even get a preview of what it will do before any action is taken. BleachBit is quite a bit more powerful than some of the other tools and should be used with caution.

3: GtkOrphan

GtkOrphan lets you easily remove orphaned packages from your Debian system. Mostly like, GtkOrphan isn't installed, so you'll need to install it (either from Synaptic or from the command line). GtkOrphan is the graphical front end to deborphan and will scan and remove from your system orphaned libraries. Depending on how much has been orphaned, this tool can clear up quite a bit of space. As with any application that removes libraries, use caution when deleting anything that might still be necessary.

4: Cruft

Cruft is a command-line tool that will look through your system and remove anything that shouldn't be there. It gathers most of its results from the dpkg database, as well as a list of "extra files" that appear during the lifetime of various package installations and removals. There are a number of options available, including:

-d -- Search only specified drives

--chroots -- Do not perform validity checks on symlinks under these directories

--ignore -- Ignore specific directories

-r -- Output report file

5: Gconf-Cleaner

Gconf-Cleaner is a tool that could be compared to a Windows registry cleaner. This tool goes through the Gconf database (Gconf Registry -- configuration database for GNOME) and removes unused and obsolete entries. It's quite simple to use, and depending upon how old your desktop is, it will find quite a lot of entries that can be removed. This is a GUI tool (as you might expect) and should be used with caution (as you would a Windows registry cleaner). Although I've never had a problem using this tool, it could possibly remove a necessary GNOME configuration. The good news? If it does totally fubar your GNOME desktop, you can always remove the GNOME configuration directory and start over fresh.

Just be careful...

There are plenty more cleaning tools for Linux out there. But the above selection should keep your system clean and free fairly easily. Just remember: When cleaning out a system (whether to make room or just get rid of unnecessary/unwanted remnants), always use caution -- especially when dealing with libraries, dependencies, and anything that requires root permission.

About

Jack Wallen is an award-winning writer for TechRepublic and Linux.com. He’s an avid promoter of open source and the voice of The Android Expert. For more news about Jack Wallen, visit his website getjackd.net.

4 comments
bobc4012
bobc4012

I found Ubuntu Tweak much more useful than "Cruft" and "Janitor". I ran Cruft once and it deleted stuff and I had to re-install. Ubuntu Tweak also has a lot more options for doing other things. You can download the Debian .deb file from https://launchpad.net/ubuntu-tweak/+download , so it sould work on any Debian based system.

itadmin
itadmin

That's just the thing, GtkOrphan is supposed to only find unused libraries. That means one should be able to remove any libraries it finds. If it shows libraries still in use by installed packages it means GtkOrphan doesn't work as it should. Of course, if one installed anything outside the scope of the Debian installer its libraries will be seen as unused. That's why it's best to first change anything one wants to install into a .deb file and use dpkg to install it.

BALTHOR
BALTHOR

And she'll freeze up and crash.I download a lot and I give each program a couple of minutes.If it doesn't meet with my expectations,I dump it.

fr33code
fr33code

Yeah I did that too once because I use root privileges to open "Janitot", and clean so well the system that erased the system-files from the partition... Silly. Thanks for the tools Jack!