[CentOS] Cleaning up the boot partition

Nicolas Thierry-Mieg Nicolas.Thierry-Mieg at imag.fr
Tue Jan 26 17:20:23 UTC 2010


Robert Heller wrote:
> At Tue, 26 Jan 2010 08:31:02 -0800 CentOS mailing list<centos at centos.org>  wrote:
>>
>> I get this error:
>>
>> No Packages marked for removal
>
> (Was anything else displayed, like maybe dependency issues?)
>
> rm /boot/*2.6.9-42* /boot/*2.6.9-55*
>
> will also work (but check in /boot/grub/grub.conf!).  Maybe somehow


not sure that's a good idea...

the OP just has tons of installed kernels, he has to uninstall the 
superfluous packages - using rpm, not rm.


rpm -q kernel
will list all installed kernels
then keep the 2 or 3 most recent (including the currently running one, 
this is a safety in case you can't boot the newer kernels)

meaning, for each kernel except the ones you want to keep, do an rpm -e 
or yum remove.



More information about the CentOS mailing list