середу, 30 квітня 2014 р.

Ubuntu: Removing all legacy unused kernels

Sometimes you need to care about each MB of disk space. You are starting to cleanup drives, but there's nothing obviously can be deleted. In such cases you an free-up some space (from dozens to hundreds of MB) by removing all legacy system kernels.
In such case please make sure you are running the latest kernel version
Compare outputs for
uname -r
and
dpkg -l | grep linux-image
Probably you may need to reboot! Then just issue the following command:
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get purge
References:
http://ubuntugenius.wordpress.com/2011/01/08/ubuntu-cleanup-how-to-remove-all-unused-linux-kernel-headers-images-and-modules/

1 коментар:

  1. Before pivoting to sports betting in 2021, the well-traveled Nova Scotian and Atlanta Braves fanatic hung out writing about education, software, and NHL prospects. We invite you to use our commenting platform to engage in insightful conversations about issues in our neighborhood. As of June 15, 2022, comments on DenverPost.com 카지노사이트.online are powered by Viafoura, and you could need to log in again to begin commenting. If you need help or are having issues along with your commenting account, please e-mail us at If you deposit by way of crypto, have the ability to|you possibly can} declare both a 300% as much as} $1,500 Bitcoin on line casino welcome bonus or a 300% as much as} $1,500 stay on line casino welcome offer. The common Cafe Casino welcome bonus is a 250% as much as} $1,500 offer.

    ВідповістиВидалити