Quickly Empty Archives And Free Disk Space In Linux Mint/Ubuntu

Share on FacebookShare on Google+Tweet about this on TwitterPin on PinterestShare on RedditPrint this page

Over a period of time, when packages are installed using apt-get commands in Linux Mint/Ubuntu, the corresponding .deb files are stored in the archives folder (/var/cache/apt/archives). They can take up disk space if left as it is and so it can be useful to remove them.

These files can be viewed by typing :

ls -l /var/cache/apt/archives | less

Viewing files in archives folder in Linux Mint/Ubuntu

To remove them and empty the archives folder :

1. Open Terminal and type :

sudo apt-get clean

Cleaning up archives folder in Linux Mint/Ubuntu

All done. The earlier .deb files will now no longer be there.

Happy cleaning.

Comments are closed.