Created
March 8, 2018 06:05
-
-
Save kurtis318/6da1e6691bdae30ef5ff84f8ad5d31ce to your computer and use it in GitHub Desktop.
Keep kernel forever on Fedora
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I was having trouble with Fedora 27 and kernels newer than 4.15.3-300 booting | |
my Lenovo P50. I have a 4.15.3-300 kernel that does not hang on boot. | |
I did some Googling and found a way to keep the 4.15.3-300 from being | |
automatically deleted va dnf. | |
REF: | |
https://ask.fedoraproject.org/en/question/37532/how-to-tell-yum-to-keep-an-old-kernel-when-updating-the-kernel/ | |
yumdb set installonly keep kernel-4.15.3-300.fc27 | |
If I update the system after, I still get new kernel versions. Automatic removing of new kernels also still works using the installonly_limit value found in /etc/yum.conf. | |
If I want to revert the previous change, I can use this command: | |
yumdb del installonly kernel-4.15.3-300.fc27 | |
I had to install yum-utils: | |
dnf -y install yum-utils | |
But of course, yumdb has been deprecated: | |
# yumdb set installonly keep kernel-4.15.3-300.fc27 | |
Yum-utils package has been deprecated, use dnf instead. | |
See 'man yum2dnf' for more information. | |
kernel-4.15.3-300.fc27.x86_64 | |
installonly = keep | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment