6Jan/120

Removing old kernel to free up /boot partition

For those who allocate less than 100MB for /boot on RHEL6 .. beware !
The kernel that ships with RHEL6 is quite big and you'll run out of space after few patches.

To list  all old kernel while excluding  currently active kernel:

 rpm -qa | egrep kernel-'(2|3|PAE|dev)' | sort -n | grep -v `uname -r| sed 's/PAE//'` 

Then run the following to remove it :

 yum remove $(rpm -qa | egrep kernel-'(2|3|PAE|dev)' | sort -n | grep -v `uname -r| sed 's/PAE//'` )

Posted by Rianto Wahyudi

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


7 × four =

No trackbacks yet.