Update Kernel Package2 - 1458767332 PDF
Update Kernel Package2 - 1458767332 PDF
Update Kernel Package2 - 1458767332 PDF
Lab
Updating the
Kernel
Contents Related Courses
Introduction 1
Red Hat CSA 7
Determining the Kernel 1
Need Help?
Linux Academy
Community
Introduction
While in most instances, you can update your Red Hat system’s kernel with yum, downloading and installing
the latest kernel using RPM is an alternative method for keeping your kernel up-to-date.
Note
This process can also be used to install a custom kernel on the system. Red Hat does not
consider any “Red Hat” systems running a custom kernel a Red Hat system.
Start the Live! Lab, and then SSH into your server with the given credentials. We need to work as root to
update the kernel. You can also prepend sudo to any commands if working as a superuser.
Your results should be similar, if not identical. The kernel 3.10.0-123.8.1.el7.x86_64 is the default kernel in
this lab. If running on an outside server, your results may differ.
The output now lists a newer, updated kernel, currently 3.10.0-327.4.5.el7, although yours may be newer.
-1-
Updating the Kernel Linux Academy
And install:
The name of your kernel package may vary. At this point you may realize, upon running the above command,
you receive an error relating to failed dependencies. To resolve this, we need to update our linux-firmware
and dracut packages:
If you now navigate to the /boot directory, you can view the newest kernel installed under vmlinuz-3.10.0-
327.4.5.el7.x86_64. You can also see the older kernel located alongside it.
If vmlinuz-3.10.0-327.4.5.el7.x86_64 is not located in the /boot directory, run dracut to regenerate it for
the latest kernel.
Ensure the new kernel is installed by rebooting the system and once more running the uname -r command.
It should output the version number of the newly-downloaded kernel.
Run yum list kernel to view a list of available kernels. Both our old and new kernels are available.
To change the default kernel, we use the grub2-set-default command followed by a number, 0 denotes
newer kernel, 1 the older.
Run:
Then reboot. Should you run uname -r once more, you should see that we are using the older kernel. To
change back replace the 1 in the above code with a 0, rerun the command, and reboot the system.
-2-