Fedora This forum is for the discussion of the Fedora Project. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-06-2004, 05:13 PM
|
#1
|
Member
Registered: Jun 2004
Location: New Jersey, USA
Distribution: Slackware 11
Posts: 191
Rep:
|
removing kernels from grub
everytime i update the kernel through yum it adds another boot option to grub. how do i remove the different kernel options from grub?
|
|
|
07-06-2004, 05:19 PM
|
#2
|
Member
Registered: Nov 2003
Location: Diawang-awangan
Distribution: Ubuntu Hoary!
Posts: 319
Rep:
|
do a 'rpm -qa | grep kernel' .. find the one that you need to remove and do
'rpm -e kernel-X.X.X-X.XXX' (where the Xs are the release number). This will remove the physical kernel of your system too and free up some space in your /boot directory and in /lib/modules too.
|
|
|
07-06-2004, 05:49 PM
|
#3
|
Member
Registered: Jun 2004
Location: New Jersey, USA
Distribution: Slackware 11
Posts: 191
Original Poster
Rep:
|
the output of the rpm -qa | grep kernel and the out was:
kernel-source-2.6.5-1.358
kernel-utils-2.4-9.1.131
kernel-2.6.6-1.435
kernel-2.6.5-1.358
kernel-2.6.6-1.435.2.3
can i remove everything but kernel-2.6.6-1.435.2.3 or do i need the utils and source file?
|
|
|
07-06-2004, 08:05 PM
|
#4
|
LQ Newbie
Registered: Apr 2004
Posts: 27
Rep:
|
vim /etc/grub.conf
(if I recall correctly..?..?)
just compare the numbers in the entries, and remove the entries with the lower kernel versions, but remember to compare them word for word so that you know where to start/stop editing.
A simple answer to a simple question, I hope.
|
|
|
07-06-2004, 09:54 PM
|
#5
|
Member
Registered: Jun 2004
Location: KY
Distribution: Debian, Mint, Puppy
Posts: 507
Rep:
|
yeah, just go to grub's config file and delete the entries associated with old kernel's. Had to do it myself recently.
|
|
|
07-06-2004, 10:12 PM
|
#6
|
Member
Registered: Aug 2003
Location: KC, MO
Distribution: CentOS, RHEL, SuSE, Fedora
Posts: 243
Rep:
|
Quote:
Originally posted by buffed317
the output of the rpm -qa | grep kernel and the out was:
kernel-source-2.6.5-1.358
kernel-utils-2.4-9.1.131
kernel-2.6.6-1.435
kernel-2.6.5-1.358
kernel-2.6.6-1.435.2.3
can i remove everything but kernel-2.6.6-1.435.2.3 or do i need the utils and source file?
|
First figure out which kernel you are running. You should be running the highest numbered one. In your case 2.6.6-1.435.2.3. If all is well you can remove 2.6.5-1.358 and 2.6.6-1.435. You can also remove that specific kernel-source package because it is for an old kernel. After removing that kernel source be sure to get the kernel-source for your current kernel. If you have the disk space keep it installed. Do not remove kernel-utils. if you want to find information on a package issue the command:
rpm -qi nameofrpm
|
|
|
07-07-2004, 01:49 AM
|
#7
|
Member
Registered: Nov 2003
Location: Diawang-awangan
Distribution: Ubuntu Hoary!
Posts: 319
Rep:
|
Removing the entries in /etc/grub.conf is a quick and dirty way of getting rid of the choices in the grub menu, but the physical kernel files will stay in the HD. Removing the unused kernel packages (using rpm -e) is the correct way to do.
|
|
|
07-07-2004, 10:44 PM
|
#8
|
Member
Registered: Oct 2003
Location: Mississauga, ON
Distribution: Ubuntu 9.04
Posts: 496
Rep:
|
If you did not use an rpm to install your kernel, for example, if you compiled your own kernel, do the following:
1.) Remove the GRUB entry for the kernel (for example, kernel-2.6.7) in /boot/grub/menu.lst
2.) Delete the kernel files in the boot directory by typing: rm /boot/*2.6.7*
3.) Make sure /boot/vmlinuz and /boot/System.map are still symbolically linked to the files of an existing kernel.
4.) Delete the kernel's modules by deleting its folder in /lib/modules. For example, rm -drf 2.6.7
|
|
|
07-08-2004, 09:55 AM
|
#9
|
LQ Newbie
Registered: May 2003
Location: Iasi, Romania
Distribution: Linux Mint Julia
Posts: 19
Rep:
|
if you have apt installed you can remove them from there. (I think, but I'm not sure, only if they were installed via rpm). I did this and everything was ok. Using Synaptic as a gui for apt will make the things even more easier. Hope that helped
|
|
|
All times are GMT -5. The time now is 11:13 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|