This will update all packages except for any future kernels: yum update -exclude-kernelĪnother option is to add an exclude statement in /etc/yum.conf under the section. Instead of using yum update, you can use the –exclude-kernel option. Well not to panic, we can exclude specific version numbers from the update process. In the event that the Kernel has a bug and doesn’t play well with your hardware, even a fresh version might lead to startup panics. It did in fact work in my case ? Excluding a Kernel from future updates When the process has finished, and with a bit of luck, I should be able to do a regular yum update, and the latest Kernel will be installed again – hopefully in working order. To get a list of the exact package names, try yum list kernel, then copy/paste from there, and preface with “kernel-“ yum list kernel We can remove a Kernel version with yum, specifying the version number like so: yum remove kernel-2.6.32-754.28.1.el6 But the one after that, namely 754.28.1.el6, I’d like to remove and potentially re-install. ![]() The one you’ve used on boot us printed in bold, in my case that’s release 754.27.1.el6. I’m getting a total of 5 entries, each of which is corresponding to one I can select on boot (I’ll show you the last two): yum info kernel But how can we tell what the other versions are? Listing all installed Kernels ![]() In my case it’s the previous Kernel that was installed. That’s good to know, as this is the version we’d like to retain. I guess when that menu with the last 10+ kernels showed up during boot, we may not have paid much attention to the little numbers at the end. To figure out which version is working for us, we can use the uname command. Here’s what worked for me on CentOS 6: What Kernel are we using Thankfully there are ways to either fix the latest version, remove it, and even exclude a particular version from future updates. I can boot into the previous one just fine, but of course if I forget to make a choice on startup, the server doesn’t start up. This short post may help you at some point if you want to have a newer version of the Linux kernel on CentOS 9 Stream.I’ve had a power cut recently, which seems to have corrupted the latest Kernel I have installed on my CentOS 6 server. When you do, run this command uname -r Kernel 6.1 runningĪnd you will see the new kernel version. To apply the changes and thus boot with the new kernel Then you can install the Linux Kernel 6.x by running sudo dnf -enablerepo=elrepo-kernel install kernel-ml Install Linux Kernel 6.x on CentOS 9 Stream Now, add the repository: sudo dnf install Now enable a repository called elrepo which builds the kernel packages for us and makes the whole process easier.īefore adding it to the system, download and apply the GPG key of it sudo rpm -import You will get an output screen like this 5.14.86_64 It is always good to do it before every operation. The first thing you have to do is to update the system. Install Linux Kernel 6.x on CentOS 9 Stream Thanks to the good support that CentOS 9 Stream has, it is possible thanks to the community to achieve our goals without too much trouble. In this sense, this may be quite true, especially with hardware issues. Many more experienced users will consider that having a recent kernel can be beneficial to their work or usage experience. So, in this post, you will learn how to install Linux Kernel 6.x on CentOS 9 Stream. However, it may be appropriate to make some tweaks to have recent versions of the Kernel. ![]() CentOS, although not what it used to be, is still very well appreciated by the community, who see it as a healthy balance between stability and new features.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |