Ho to Configure yum utility to auto-remove old unused kernels

To Configure yum utility to auto-remove old  kernels, you can use yum coniguration file reside in /etc directory, named  yum.conf  . By default CentOS will keep last 5 kernels installed on your system. You can keep desired number of old kernels on your system after update . For this purpose you can change installonly_limit = to any  no. ( ie.2,3,4 etc. ) in the /etc/yum.conf configuration file .

[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=5
bugtracker_url=http://bugs.centos.org/set_project.php?project_id=23&ref=http://bugs.centos.org/bug_report_page.php?category=yum
distroverpkg=centos-release

How to remove old unused Kernel from CentOS 7

https://linuxgeeksin.com/2018/07/03/how-to-remove-old-unused-kernel-from-centos-7/


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s