Sometime due to less space on /boot
partition need remove old kernel packages once new/updated kernel installed.
The “installonly_limit” option in /etc/dnf/dnf.conf is used to maintain the number
of kernel available. By default, the limit is set to 3 kernels in CentOS 8.
Step 1. DNF Configuration File: Run the following command to open and edit the dnf
configuration file:
[root@linuxcnf ~]# vi /etc/dnf/dnf.conf
[main]
installonly_limit = 2
……………………..
……………………..
[root@linuxcnf ~]#
|
The “installonly_limit” should be
more than 1. The limit is less than 2 gives error “Options Error parsing
installonly_limit = 1 out of range integer value”. It should be set to minimum
2 to keep the running kernel if new kernel fails due to some reason, the system
can boot with the old kernel.
No comments:
Post a Comment