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.
- Linux game: Garry’s Mod
- Check how much do you type with WhatPulse on Linux
- Linux Terminal: Reptyr attach a running process to a new terminal
- Zorin OS Contest Results
- Enabling automatic updates in Centos 7 and RHEL 7
Find me on Google+