Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alain-andre/31b8dbe2c120424caa47b6f9ca03ab2a to your computer and use it in GitHub Desktop.
Save alain-andre/31b8dbe2c120424caa47b6f9ca03ab2a to your computer and use it in GitHub Desktop.
Remove linux images
sudo apt clean

To remove all stored archives in your cache for packages that can not be downloaded anymore (thus packages that are no longer in the repository or that have a newer version in the repository).

sudo apt autoclean

To remove unnecessary packages (After uninstalling an app there could be packages you don't need anymore)

sudo apt autoremove

To delete old kernel versions

dpkg --get-selections | grep linux-image
sudo apt remove --purge linux-image-X.X.XX-XX-generic linux-image-X.X.XX-XX-generic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment