LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-16-2013, 07:35 AM   #1
picatrix
LQ Newbie
 
Registered: Jan 2013
Posts: 2

Rep: Reputation: Disabled
Current kernel doesn't show up with rpm -q kernel command


Hi,

Somebody who knows why the current kernel doesn't show up when I'm running "rpm -q kernel". Only the old ones show up.

Is there because I did compile it my self from source code and didn't go with a rpm package?

The other question is, now when it doesn't show up this way, Am I unable to remove this kernel later on with the rpm -e [kernel-x.x.x] and if so how do I take that one away?

Thanks in advance!

/PT
 
Old 01-16-2013, 07:53 AM   #2
RaviTezu
Member
 
Registered: Nov 2012
Location: India
Distribution: Fedora, CentOs, RHEL
Posts: 164

Rep: Reputation: 24
Hi Picatrix,

Try this...
Quote:
rpm -qa | grep -i kernel
 
Old 01-16-2013, 07:56 AM   #3
bijo505
Member
 
Registered: Nov 2012
Location: Bangalore
Distribution: Fedora & Ubuntu
Posts: 77

Rep: Reputation: 18
Quote:
Originally Posted by picatrix View Post
Hi,

Somebody who knows why the current kernel doesn't show up when I'm running "rpm -q kernel". Only the old ones show up.

Is there because I did compile it my self from source code and didn't go with a rpm package?

The other question is, now when it doesn't show up this way, Am I unable to remove this kernel later on with the rpm -e [kernel-x.x.x] and if so how do I take that one away?

Thanks in advance!

/PT

Hi picatrix,
Because you installed the new kernel by source compilation. If you run rpm query, it will check the query in RPM db files, which is stored in /var/lib/rpm/__ files and that information will not be there in the db. so if you want to remove your custom kernel, boot the system in the old kernel and remove the files from /boot and /lib/modules/<current kernel> and also please have a look at the following URL's. That will help you

http://www.linuxplanet.com/linuxplanet/tutorials/202/1
http://www.tldp.org/LDP/lame/LAME/li...el-custom.html

PS: The path and files may be vary depends up on your installation.
 
2 members found this post helpful.
Old 01-16-2013, 07:59 AM   #4
picatrix
LQ Newbie
 
Registered: Jan 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Okey, thanks!

Then It was as I expected. Great information, and thanks for the links!

/PT
 
Old 03-30-2013, 03:20 PM   #5
bitonw
LQ Newbie
 
Registered: Jan 2007
Posts: 6

Rep: Reputation: 0
i had something similar when it miss typed; rpm -q kernel and typed; rpm -e kernel

with; rpm -e kernel i got no a kernel showing

when i did; rpm -qa | grep -i kernel
i only got; kernel-headers-2.6.18-348.3.1.el5

so i used; yum install kernel-2.6.18-348.3.1.el5

now i get; rpm -q kernel
kernel-2.6.18-348.3.1.el5

and; rpm -qa | grep -i kernel
kernel-2.6.18-348.3.1.el5
kernel-headers-2.6.18-348.3.1.el5

as before
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why Doesn't Tux Show Up Anywhere On kernel.org? Zssfssz Linux - General 4 04-10-2012 01:22 PM
Eth0 doesn't show after upgrade to 2.6.38.4or5 kernel (Arch) mike54 Linux - Software 1 05-07-2011 02:39 AM
Yum Install Kernel doesn't show in BUILD or SPEC dman777 Red Hat 1 03-12-2011 09:56 PM
Debian: What is the command to show my current kernel version? charon79m Linux - General 4 01-18-2011 04:21 AM
Create RPM of current Kernel? lets-eat-gary Linux - Software 1 07-26-2005 10:44 PM


All times are GMT -5. The time now is 05:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration