LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cannot upgrade kernel on CentOS 7. Possibly Grub issue. (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-upgrade-kernel-on-centos-7-possibly-grub-issue-4175646366/)

anon042 01-16-2019 11:07 PM

Cannot upgrade kernel on CentOS 7. Possibly Grub issue.
 
Hey there,

So I am new to Linux and cannot solve this problem. I've reached out to my hosting company but they haven't been able to help. I have a VPS running CentOS 7 with Linux 3.10.0-229.20.1.el7.centos.plus.x86_64. When I upgraded from 7.1 to 7.6, the kernel does not update (3.10.0-957.1.3.el7.centos.plus.x86_64) to the newest version.

Grub commands do not work and when I use the command "yum list available" grub and grubby are listed in red and as "installed," rather than "@base" or "anaconda".

I have attempted to install grub and grub tools via yum, but it comes up "No Package Available."

I am not sure if you can just install grub through rpm, wget, or another tool. Or if this is even how to approach this problem. Hoping someone can explain or help. Thank you in advance.

berndbausch 01-17-2019 12:59 AM

To get this out of the way: When you upgrade, you don't upgrade the kernel, but rather install the new kernel in addition to the old one. You can remove the old kernel when you are certain that the new kernel breaks none of your applications.

Now a few questions for clarity.

How do you upgrade?
When you upgrade, is there an error message regarding the kernel?
Red Hat maintains instructions how to upgrade the kernel manually. Have you tried that?

What do you mean by "grub commands do not work" - which commands precisely? Do you mean the bootloader commands or commands like grub2-mkconfig, which you run on the operating system?

I am a bit confused - I thought that yum list available showed those packages that are not installed but can be installed. This contradicts what you are saying. What do you get when you run rpm -qa?


All times are GMT -5. The time now is 12:22 PM.