Jump to content

uninstalling old kernels+source


Recommended Posts

Hi all,

 

I'm now onto my 4th kernel, and it's getting a bit crowded with all the previous ones still there. I thought I'd get rid of all but the current and previous one, but only the kernels show up in urpme - no mention of the source packages.

 

Can I just delete the older kernel-source directories? And if so, is it better to do before or after removing the kernels?

 

Thx in advance.

 

[moved from Installing Mandrake by spinynorman]

Link to comment
Share on other sites

Open a consol as su (root) and type

rpm -qa | grep kernel

This will list all kernels installed including kernel-source.

Then just do rpm -e kernel_whatever. Do the same for kernel sources you don't want. "In what order?" it doesn't matter.

 

If your not sure which kernel your using at the moment, type:

uname -r

Link to comment
Share on other sites

you can just delete the dirs in

/usr/src

/lib/modules

 

whatever is in /boot won't effect anything if the dirs in /lib/moduales arn't there. If you no which ones, you can just delete the old vmlinuz's, initrd's, System.map's and config's from /boot as well.

 

then you can remove them from the booloader

Edited by bvc
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...