Posts

Showing posts with the label Linux Kernel

[HOW TO] Save disk space removing old linux-headers

Even though old kernels have been removed (as described in this preview post ), linux-headers packages may still be left behind using precious disk space. Here's how to remove them. Recovering disk space Open a terminal window and run: current_kernel=$(uname -r) && dpkg-query -W -f='${Package}\n' 'linux-headers-[0-9].[0-9][0-9]*' | egrep -v ${current_kernel%-generic} | xargs sudo apt-get remove -y Running this command I was able to recover a little bit more than 1GB of disk space: After this operation, 1075 MB disk space will be freed. Disclaimer Use this command at your own risk. To see what the command will remove just run the first part, without apt-get remove : current_kernel=$(uname -r) && dpkg-query -W -f='${Package}\n' 'linux-headers-[0-9].[0-9][0-9]*' | egrep -v ${current_kernel%-generic}

[HOW TO] Easily upgrade Xubuntu 12.04 kernel to 3.8

In this article we'll learn an easy way to upgrade the kernel of Xubuntu 12.04 to version 3.8. Upgrade kernel to 3.8 Open a terminal window and run: sudo apt-get install linux-generic-lts-raring -y References What is the best way to upgrade the kernel in 12.04.3?

[HOW TO] Remove old kernels in Ubuntu

Image
After running the system for a while the Linux kernel gets updated and the old versions are kept installed, even though that aren't needed any more. In this article I provide a way to remove automatically any kernel version that is older than the current being used. By the way, I was able to recover more than 1GB of free disk space by running this. Remove Open a terminal window and run: current=`uname -r` && uninstall="" && for version in `dpkg -l linux-image* | grep ii | awk '{ print $2}'`; do if [[ "$version" References Remove Old Kernels in Ubuntu 11.10 (Oneiric ocelot)