LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 09-07-2002, 10:00 AM   #1
mikeshn
Member
 
Registered: Feb 2002
Posts: 586

Rep: Reputation: 30
Old Kernel remove?


Hello

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

Thanks
 
Old 09-07-2002, 10:36 AM   #2
markus1982
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, 05:20 AM   #3
curos
Member
 
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
Code:
rpm -e kernel-2.4.20-8
and i got
Code:
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, 07:31 AM   #4
Disruptor
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:

ftp://fr2.rpmfind.net/linux/PLD/dist...429.noarch.rpm

install it:

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

and reach it's index via path:

/usr/share/doc/maximum-rpm-1.0/index.html

read chapters 1-7 and you will be fine.

Cheers,
Dominique
 
  


Reply


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 11:35 AM
how to remove a kernel lucs Slackware 5 05-03-2005 12:42 AM
how do I remove new kernel? jmral23 Linux - Newbie 1 02-09-2005 05:48 PM
remove kernel collimate Linux - Newbie 4 12-03-2003 02:37 AM
remove kernel praveen_2003 Linux - Software 5 07-20-2003 12:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:10 AM.

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