[SOLVED] How can I delete the last Kernel from CentOS 8
CentOSThis forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Use the commands in that document to boot to find the kernel indexes, boot to an older kernel, and then make that older kernel your default and remove the newer kernel.
After that you will have to freeze your kernel so it will not update, or take other steps to protect yourself form updates changing the kernel.
Hello,
Sorry, I can't remove the newest Kernel from Boot-Menu.
Quote:
$ sudo yum remove kernel-4.18.0-358.el8.x86_64
Keine Übereinstimmung für Argumente: kernel-4.18.0-358.el8.x86_64
Keine Pakete zum Entfernen markiert.
Abhängigkeiten sind aufgelöst.
Nichts zu tun.
Fertig.
do not try to remove it form the grub menu, just change index 0 to the other kernel.
Then reboot and load tha other kernel so that you are not trying to remove the current kernel.
Then remove the kernel that is the problem.
To get the install name, you might have to list installed packages and see if the package name differs from what you expect.
I could probably make this more clear, if only I could read and write German.
you do not need to remove it at all, just set the previous one as default. And probably that's all.
The message means there is no such package at all, that is not the name of the package you are looking for. And anyway the next yum update will bring it back.
My problem is, that after manual deleting all /boot/*-4.18.0-358.* the Kernel 4.18.0-358.7.1.el8_5.x86_64 stands always at the top of my Boot-menu.
Where is that written in the system?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.