Skip to content

Instantly share code, notes, and snippets.

@VictorTpo
Last active June 8, 2017 08:00
Show Gist options
  • Save VictorTpo/e517c6bb517c68f1b70b to your computer and use it in GitHub Desktop.
Save VictorTpo/e517c6bb517c68f1b70b to your computer and use it in GitHub Desktop.

Remove old kernels files

You can see should restart the server when you see *** System restart required *** when you start ssh
You can restart with sudo shutdown -r now
You can see your current kernel version with uname -r
You can see all kernel versions in /lib/modules/

1) Delete perimated packages

sudo apt-get autoclean

2) Delete cache

sudo apt-get clean

3) Delete installed packages as dependencies which have been unused

sudo apt-get autoremove

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment