At Tue, 26 Jan 2010 08:31:02 -0800 CentOS mailing list <centos@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
you installed these kernels without using yum/rpm or you removed the
packages and somehow the files were left behind -- maybe you did a
backup and restore of /boot or /boot was mounted readonly at the time
you did the yum remove / rpm -e or something else (like a fresh
re-install without reformatting /boot or somehow else you ended up with
/boot out of sync with your rpm DB).
Check in /boot/grub/grub.conf -- any kernel shown below that is NOT
mentioned in /boot/grub/grub.conf can safely be removed, either with yum
(yum remove kernel-<version>), or with rpm (rpm -e kernel-<version>), or
with rm (rm /boot/*<version>*). If you do use rm (if all else fails),
be sure to look in /lib/modules/<version> and clean this up with rm as
well.
If you *still* need more space, you can use 'yum remove
kernel-<version>' or 'rpm -e kernel-<version>' of additional kernels,
don't removing the running kernel! You don't *need* to keep anything
but the latest kernel, although it is reasonable to keep the last 2-3
kernels as a safety measure against kernel problems (bugs in the latest
kernel or drivers, etc.).
--
Robert Heller -- 978-544-6933
Deepwoods Software -- Download the Model Railroad System
http://www.deepsoft.com/ -- Binaries for Linux and MS-Windows
heller@deepsoft.com -- http://www.deepsoft.com/ModelRailroadSystem/
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
01-26-2010, 04:20 PM
Nicolas Thierry-Mieg
Cleaning up the boot partition
Robert Heller wrote:
> At Tue, 26 Jan 2010 08:31:02 -0800 CentOS mailing list<centos@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.
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
01-26-2010, 04:39 PM
Robert Heller
Cleaning up the boot partition
At Tue, 26 Jan 2010 18:20:23 +0100 CentOS mailing list <centos@centos.org> wrote:
>
> Robert Heller wrote:
> > At Tue, 26 Jan 2010 08:31:02 -0800 CentOS mailing list<centos@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.
>
> the OP just has tons of installed kernels, he has to uninstall the
> superfluous packages - using rpm, not rm.
YES, of course, unless rpm 'believes' that the kernels are NOT
installed (not in rpm's database for some reason).
>
>
> 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.
>
> _______________________________________________
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>
--
Robert Heller -- 978-544-6933
Deepwoods Software -- Download the Model Railroad System
http://www.deepsoft.com/ -- Binaries for Linux and MS-Windows
heller@deepsoft.com -- http://www.deepsoft.com/ModelRailroadSystem/
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
01-26-2010, 05:01 PM
Nicolas Thierry-Mieg
Cleaning up the boot partition
Robert Heller wrote:
> At Tue, 26 Jan 2010 18:20:23 +0100 CentOS mailing list<centos@centos.org> wrote:
>
>>
>> Robert Heller wrote:
>>> At Tue, 26 Jan 2010 08:31:02 -0800 CentOS mailing list<centos@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.
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
01-26-2010, 07:34 PM
Robert Heller
Cleaning up the boot partition
At Tue, 26 Jan 2010 19:01:50 +0100 CentOS mailing list <centos@centos.org> wrote:
>
> Robert Heller wrote:
> > At Tue, 26 Jan 2010 18:20:23 +0100 CentOS mailing list<centos@centos.org> wrote:
> >
> >>
> >> Robert Heller wrote:
> >>> At Tue, 26 Jan 2010 08:31:02 -0800 CentOS mailing list<centos@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.
--
Robert Heller -- 978-544-6933
Deepwoods Software -- Download the Model Railroad System
http://www.deepsoft.com/ -- Binaries for Linux and MS-Windows
heller@deepsoft.com -- http://www.deepsoft.com/ModelRailroadSystem/
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos