[root@CHONNOM ~]# cat /etc/grub.conf |grep title
title CentOS (2.6.32-504.12.2.el6.x86_64)
title CentOS (2.6.32-504.8.1.el6.x86_64.debug)
title CentOS (2.6.32-504.8.1.el6.x86_64)
title CentOS (2.6.32-431.29.2.el6.x86_64.debug)
title CentOS (2.6.32-431.29.2.el6.x86_64)
title CentOS (2.6.32-431.17.1.el6.x86_64)
title CentOS (2.6.32-358.6.1.el6.x86_64)
/boot µð·ºÅ丮³»¿¡ ½×¿©ÀÖ´Â Ä¿³ÎÀ̹ÌÁöµé
YUM Utilities Package ¼³Ä¡
[root@CHONNOM boot]# rpm -qa |grep yum-utils
yum-utils-1.1.30-17.el6_5.noarch
¼³Ä¡°¡ ¾ÈµÇ¾îÀÖ´Ù¸é
[root@CHONNOM boot]# yum install yum-utils
¿À·¡µÈ Ä¿³Î¹öÀü »èÁ¦
¡Ø Package-cleanup Old Kernel Options:
--oldkernels Remove old kernel and kernel-devel packages
--count=KERNELCOUNT
Number of kernel packages to keep on the system
(default 2)
--keepdevel Do not remove kernel-devel packages when removing
kernels
[root@CHONNOM ~]# package-cleanup --oldkernels --count=2
¿À·¡µÈ Ä¿³Î »èÁ¦À¯¹« È®ÀÎ
[root@CHONNOM boot]# rpm -q kernel
kernel-2.6.32-504.8.1.el6.x86_64
kernel-2.6.32-504.12.2.el6.x86_64
[root@CHONNOM boot]# cat /etc/grub.conf |grep title
title CentOS (2.6.32-504.12.2.el6.x86_64.debug)
title CentOS (2.6.32-504.12.2.el6.x86_64)
title CentOS (2.6.32-504.8.1.el6.x86_64.debug)
title CentOS (2.6.32-504.8.1.el6.x86_64)
/boot µð·ºÅ丮³»¿¡ Á¦°ÅµÈ Ä¿³ÎÀ̹ÌÁö È®ÀÎ
ÀÚµ¿À¸·Î ¿À·¡µÈ Ä¿³Î»èÁ¦
:: ±âº»°ªÀº 5·Î µÇ¾îÀÖÀ¸¸ç À̺κÐÀ» º¸°üÄ¿³Î°¹¼ö·Î ¼³Á¤ÇÏ¸é µË´Ï´Ù.
[root@CHONNOM boot]# vim /etc/yum.conf
installonly_limit=5
--> installonly_limit=2