Re: How do I remove a kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, 8 Jan 2019 at 17:23, Robert Moskowitz <rgm@xxxxxxxxxxxxxxx> wrote:

> I have 4 kernels in /boot, leaving on 20MB which is not enough for the
> next one.
>
> I had installonly_limit= set at 5, as there were some kernel problems.
> After I got the error that there was not enough room for another kernel,
> I set installonly_limit= to 3 and did the update with --exclude=kernel*
>
> That worked to update everything else, but not remove the oldest kernel.
>
> How can I remove the oldest kernel to make room for the new one?
>


yum remove kernel-3.10.0-862.2.3.el7.x86_64 # or whatever the name is.

For the YOLO approach

yum remove $( rpm -q kernel | sort -n | head -n 2 )

That should work currently (though a safer method might be done).. I am not
sure if it will correctly deal with kernel-3.10.0-1234.5.6.el7.x86_64
someday


> thanks
>
>
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> https://lists.centos.org/mailman/listinfo/centos
>


-- 
Stephen J Smoogen.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux