Hi. Is there any commad for eliminate old kernels from grub instead of edit manually grub.conf and eliminate the files from /boot? Iago. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20051109/36a7fafa/attachment.html>
iagosineiro at yahoo.es wrote:> Hi. > > > > Is there any commad for eliminate old kernels from grub instead of edit > manually grub.conf and eliminate the files from /boot? >yum erase kernel-<version>-<release>.{arch} on its way out, it will clean up the lilo.conf and/or grub.conf as you have setup. - K -- Karanbir Singh : http://www.karan.org/ : 2522219 at icq
iagosineiro at yahoo.es wrote:> Is there any commad for eliminate old kernels from grub instead of edit > manually grub.conf and eliminate the files from /boot?To see which kernels are installed: rpm -qa | grep kernel then remove via : yum remove kernel-2.6.9-11.EL (assuming that's the kernel you wish to remove). Regards, Sean
On 11/9/05, iagosineiro at yahoo.es <iagosineiro at yahoo.es> wrote:> Is there any commad for eliminate old kernels from grub instead of edit > manually grub.conf and eliminate the files from /boot?Yum-utils includes a script called package-cleanup. Running "package-cleanup --oldkernels" will take care of this for you, without having to check kernel versions by hand. You can get yum-utils from http://linux.duke.edu/yum/download/yum-utils/. It's also part of Fedora Extras; since it's a noarch package, you could probably just download the RPM from there and install it on a CentOS 4 box, although I haven't tried this. Josh Kelley