Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 09-07-2002, 11:00 AM   #1
Registered: Feb 2002
Posts: 586

Rep: Reputation: 30
Old Kernel remove?


I just upgrade the Kernel of RH 7.3. When I reboot the computer I see the choice between old and new kernel: OLD: NEW:
Is it possbile to remove the old kernel? If so how? Or it's good idea to keep it?

Old 09-07-2002, 11:36 AM   #2
Senior Member
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Well generally if you don't have a hardware problem and need the new kernel for that purpose or if there is some security thread ... you should stick with the old one and don't update your kernel at all (excluding it from up2date). But if you still want to remove the old one:

rpm -qa | grep kernel

you will see 2 kernels in your case so all YOU would need to do is to rpm -e kernel-2.4.18-3
Old 08-03-2003, 06:20 AM   #3
Registered: Aug 2003
Distribution: Slackware
Posts: 72

Rep: Reputation: 15
I was just trying to do that right now in redhat 9 and I got this error message. I'm quite a newb so i don't know what to do

i typed
rpm -e kernel-2.4.20-8
and i got
error: cannot get exclusive lock on /var/lib/rpm/Packages
error: cannot open Packages index using db3 - Operation not permitted (1)
error: cannot open Packages database in /var/lib/rpm
but maybe i did something wrong. i'm not even sure if i was in the commandline or not.
i went to the redhat startup button > system tools > terminal
and typed that there
Old 08-03-2003, 08:31 AM   #4
LQ Newbie
Registered: Jul 2003
Location: Hellas - Crete - Heraklion
Distribution: Red Hat 9
Posts: 24

Rep: Reputation: 15
hehe ... you are trying to remove a package as a normal user. For operation that
concern the entrire system, like package removal, you've got to log in as root.
Patience -- you'll get accustomed. Oh, and don't forget the ultimate tutorial
for using rpm:

install it:

rpm -ivh maximum-rpm-1.0-0.20010429.noarch.rpm

and reach it's index via path:


read chapters 1-7 and you will be fine.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel compilation : to remove a kernel which files should be deleted b0nd Linux - Newbie 2 08-17-2005 12:35 PM
how to remove a kernel lucs Slackware 5 05-03-2005 01:42 AM
how do I remove new kernel? jmral23 Linux - Newbie 1 02-09-2005 06:48 PM
remove kernel collimate Linux - Newbie 4 12-03-2003 03:37 AM
remove kernel praveen_2003 Linux - Software 5 07-20-2003 01:53 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:52 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration