To retrieve kernels RPM's other than the running kernel,

usage:

old-kernels
usage:
yum remove `old-kernels`

Script is trivial:

#!/bin/bash

exec rpm -qa | grep kernel | grep -v `uname -r | cut -d . -f 1,2,3,4,5,6,7`

Creator: NielsMayer.com Administrator on Aug 31, 2009 12:02:44 GMT-08:00
This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 1.8.17790 - Documentation