Ubuntu Linux: Clean aptitude Cache Command

Ubuntu Linux: Clean aptitude Cache Command

On Ubuntu Linux, you can use the apt-get command to clean the cache of downloaded package files. The apt-get command is a utility that is used to manage packages on the system.

To clean the cache of downloaded package files, you can use the clean option of the apt-get command. Here's an example of how to use the apt-get command to clean the cache:

sudo apt-get clean
Sour‮.www:ec‬lautturi.com

This will remove all downloaded package files from the cache, except for the lock file.

If you want to remove all downloaded package files, including the lock file, you can use the autoclean option instead:

sudo apt-get autoclean

Keep in mind that cleaning the cache will not remove installed packages or their dependencies. It will only remove downloaded package files that are no longer needed.

Cleaning the cache can be useful if you want to free up disk space or if you want to make sure that you are downloading the latest versions of packages. However, keep in mind that cleaning the cache can also cause problems if you are in the middle of an installation or upgrade, as it may remove necessary package files. In such cases, it is recommended to wait until the installation or upgrade is complete before cleaning the cache.

Created Time:2017-10-30 14:27:27  Author:lautturi