How to delete the old kernel in CentOS 6.3s
This article shows you how to delete the old kernel in CentOS 6.3, concise and easy to understand, absolutely can make your eyes shine, through the detailed introduction of this article I hope you can gain something.
CentOS 6.3 will update the kernel from time to time, resulting in a lot of boot entries at boot time, we can delete the old kernel, keep the latest kernel, this can free up some disk space.
(1) View installed kernels
Command: rpm -q kernel
Display results: kernel-2.6.32-279.el6.i686
kernel-2.6.32-279.9.1.el6.i686
kernel-2.6.32-279.11.1.el6.i686
kernel-2.6.32-279.14.1.el6.i686
(2) Remove the old kernel
Install yum-utls: sudo install yum-utils
Set how many old kernels you want to keep, for example I want to keep two: sudo package-cleanup --oldkernels --count=2
Check the kernel information again with rpm -q kernel, leaving only the latest two:
kernel-2.6.32-279.11.1.el6.i686
kernel-2.6.32-279.14.1.el6.i686
(3)Set the number of permanent kernel installations, I set it to two
sudo gedit /etc/yum.conf
Set installonly_limit=2
(4)Restart and you will see only two kernel startup entries.
The above is how to delete the old kernel in CentOS 6.3. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserves, please pay attention to the industry information channel.