Re: removing old Kernels

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2006-08-23 at 19:54 -0500, Mikkel L. Ellertson wrote:
> Kostas Sfakiotakis wrote:
> > Greeting Jose,
> > 
> > Pichin wrote:
> >> Can someone tell me how to remove old kernels, I have about 5 old
> >> kernels and only use one (the most recent one)..
> >>
> > There are two places that you have to visit .
> > 
> > 1. the /boot directory
> > 
> > In here you will find a set of three files for each kernel version that
> > you have installed for example
> > 
> > initrd-2.6.17.8.img
> > System.map-2.6.17.8
> > vmlinuz-2.6.17.8
> > 
> > If you wish to remove the 2.6.17.8 kernel then you will have to remove
> > the above three files .
> > 
> > Beware of one thing here
> > 
> > There is a symbolic link for System.map
> > You will have to make sure that it doesn't point in our
> > example to System.map-2.6.17.8
> > Also there is a symbolic link for vmlinuz , so again you will have to
> > pay attention that it doesn't point to the file you want to delete .
> > 
> > After you clean the above set of 3 files from the boot directory (
> > initrd,System.map,vmlinuz) you have to go to the /lib/modules/ directory
> > There is the location that the kernel modules are stored .
> > Delete all the directories that corespond to the kernels that you don't
> > want to keep .
> > 
> > HTH,
> > 
> > Kostas
> > 
> While this would work, it is not a good way to do it on a system
> with package management. You are much better off using rpm or yum to
> remove the kernel packages. This keeps your RPM database accurate.
> As others have covered how to use yum and rpm to do this, as well as
> how to remove any kernel development packages that way be installed,
> I will not go into that. One other way you can do it is to use the
> yum extender GUI, remove section, searching for kernel, and pick the
> packages you want to remove.
> 

Using the package manager also removes the entire package. 

There is a lot more to a kernel than the 3 files in /boot,
including /lib/modules/<kernel version>, the entry
in /boot/grub/grub.conf, the entry in the rpm database, etc.

> Mikkel
> -- 
> 
>   Do not meddle in the affairs of dragons,
> for thou art crunchy and taste good with Ketchup!
> 

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux