To update Kernel:
#rpm -ivh [kernel.rmp] --> Install a rpm package in verbose mode
OR
#yum install kernel --> (If you're using repositories)
It's important to know that this doesn't replace the actual kernel. It is installed along the actual kernel and you can select any available kernel to boot the system in case of troubleshooting.
Also, the system onlny saves a maximum of 4 kernels. If you already have 4, and install a 5th kernel, this one will replace the oldest kernel.
-----------
To set a default kernel:
- We can use grubby command tool.
#grubby --default-kernel --> Get default kernel (It's probably that the latest installed be selected)
#grubby --info=ALL | grep ^kernel --> This command list all kernel paths for the available kernels.
#grubby --set-default=[kernel path obtained from the above command]
Reboot and verify
#uname -r --> Get the loaded kernel
Although what Roldo97 mentioned above is detailed, this should also work because once new Kernel is installed it automatically becomes the first one to boot with.
It would be different story if a specific version will be mentioned and we need to make that as the first one. Then we need to use the options with grubby to set to defined kernel number.
rpm -ivh [kernel.rpm]
###* change the default kernel: https://access.redhat.com/solutions/4326431
###* fastest to my mind:
grep ^id /boot/loader/entries/*
###* select the id of the installed kernel
grub2-set-default <ID>
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Roldo97
Highly Voted 2 years agoAbidBajwa
1 year, 3 months agoadolfoale
Highly Voted 1 year, 12 months agokitkat
7 months, 1 week agokitkat
7 months, 1 week agosovafal192
Most Recent 3 months, 3 weeks agonoobasty
1 year, 2 months ago