Ubuntu – Removing source dependencies after building from source

compilingdependencies

Now while installing the dependencies I've realized that they actually take up quite a lot of space (depending on what the dependencies are). So my question is:

  • How do I remove all of the dependency files which my operating system does not require? Is sudo apt-get autoremove enough?

Best Answer

Yes, apt-get autoremove is the command to use; it'll remove dependencies that were installed automatically and are no longer required.

You can choose during removal of a program to remove the dependencies at the same time with apt-get remove --auto-remove packagename.

You can also use Bleachbit - it does the following:

BleachBit deletes unnecessary files to free valuable disk space, maintain privacy, and remove junk. Rid your system of old clutter including cache, cookies, Internet history, localizations, logs, temporary files, and broken shortcuts. Designed for Linux systems, it wipes clean Adobe Reader, APT, Bash, Beagle, Chromium, Epiphany, Firefox, Flash, GIMP, Google Earth, Java, KDE, OpenOffice.org, Opera, RealPlayer, Second Life viewer, Skype, VIM, XChat, Yum, and more.

Probably what you're looking for...