How can I change the number of kernels retained when updating in Fedora?

4

2

When running 'dnf update' the system will only keep 3 of the previous kernel versions installed. Once I attempt to install the 4th update then dnf wants to remove the oldest installed kernel. How can I increase or decrease the number of available/installed kernels?

Jeff

Posted 2019-04-10T01:18:17.680

Reputation: 191

Answers

5

Edit the file '/etc/dnf/dnf.conf', changing the numeric value in installonly_limit=3 to a number of your choosing.

Be aware that if you increase the number too high then you run the risk of filling up the /boot partition.

Jeff

Posted 2019-04-10T01:18:17.680

Reputation: 191