[CentOS] Cleaning up the boot partition

Nicolas Thierry-Mieg Nicolas.Thierry-Mieg at imag.fr
Tue Jan 26 18:01:50 UTC 2010


Robert Heller wrote:
> At Tue, 26 Jan 2010 18:20:23 +0100 CentOS mailing list<centos at centos.org>  wrote:
>
>>
>> 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...
>
> It might make sense *as a last resort*, partitularly if something odd
> happened -- I mentioned several: rpm -e might have failed somehow, a fresh
> reinstall without reformatting /boot, a backup/restore, etc.  All of
> these could result in the kernels *appearing* to be 'installed', but not
> 'visible' to rpm/yum.  In which case rpm/yum won't remove them.

I agree with you Robert, but since the OP hasn't posted the output of 
'rpm -q kernel' there's no reason yet to suspect that's the case.
And since the OP stated he is inexperienced... I didn't want him blindly 
rm'ing stuff as root unless it's clearly necessary.


More information about the CentOS mailing list