- To update kernel first we need to list all installed kernel versions and check the currently running kernel.
<< rpm -qa kernel | sort >>
- The above command gives all the installed kernel versions and we need to install the latest kernel.
<< uname -r >>
- The above command shows the currently running kernel
<< sudo dnf updateinfo list security >>
- The above command lists all packages with security fixes and vulnerabilities
<< dnf versionlock clear >>
- The above command Removes all locked packages so DNF is free to update kernel or any other updates.
<< sudo dnf install kernel-3.10.0-957 >>
- The above cmd installs the latest kernel. Now it needs a reboot to apply the changes and then we verify if the kernel is updated with the newer version with <uname -r>.
- And we verify if all the vulnerabilities got clear using
< sudo dnf updatinfo list security>
- Now we update everything with < sudo dnf update -y >
- Finally, we add the version lock back to the latest kernel using
<sudo dnf versionlock add kernel-3.10.0-957 >
Leave a Reply