Original article By Monica Aguilar on usemoslinux.blogspot.com
Problems of space? Perhaps the fault is not entirely of your music files, images and video, but installation packages and unnecessary dependencies in the system. But do not despair, there are some options of apt-get that can help solve these problems.
APT is Advanced Packing Tool , which is responsible for managing the packages to install and UNINSTALL, and their respective dependencies. <APT was created for Debian , and designed to work with dpkg , but now somemodifications have been done to work with the package manager RPM with apt-rpm.
It is a tool of APT used on console , ie not use graphical interface, as well as aptitude . Other available variants are Synaptic and Adept . This package manager is used by distros like Debian , Ubuntu (all flavors), LinuxMint , EdulibreOS , Knoppix , Xandros , Trisquel , Canaima , Finnix , MEPIS , VENENUX , Tuquito and other Debian-based distros .
When space is a problem, and the system itself notifies you of this, maybe it’s time to clean the folder /var/cache/apt/archives , where are stored the packages needed to install programs and applications. To know how much space these files are occupying, you can run in console the following command:
du -hs /var/cache/apt/archives 300M /var/cache/apt/archives
To reclaim the space, use the following commands:
sudo apt-get autoclean
This command remove from the cache packages .deb that have an older release than the programs you have installed.
sudo apt-get clean
Remove all the packages from the cache. The only drawback might be is if you want to reinstall a package, you have to download it again.
sudo apt-get autoremove
This command deletes orphaned packages, or dependencies that are installed after you install an application and then remove it, so they are no longer needed.
- Reasons why 2015 will be year for Linux on the desktop
- Manage and read your ebooks on Linux with Calibre
- The Best Linux-Based Home Automation Systems for Under $300
Find me on Google+