Friday, November 1, 2013

Using the apt-get command to clear some free disk space with Ubuntu

To free up some disk space with a Ubuntu/Debian-based system, the apt-get clean command can be used.  This command should remove downloaded .deb files or packages from the local repository within the paths /var/cache/apt/archives and /var/cache/apt/archives/partial.  The apt-get autoclean command is similar; the only difference is that it only removes package files that can not longer be downloaded.  An example would be a package that has a newer version within the repository.

sudo apt-get clean

sudo apt-get autoclean


No comments:

Post a Comment