LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-30-2008, 10:57 PM   #1
vinaykutsa
LQ Newbie
 
Registered: Dec 2008
Location: Bangalore, Karnataka,, India.
Distribution: FC 8
Posts: 2

Rep: Reputation: 0
Difference between command


Hello,

I'm using FC-8.

Kindly explain the difference between the following command, to check if kernel source is installed or not...

When i run the following:

1. rpm -q kernel-source
OUTPUT: kernel source package not installed

2. rpm -qa | grep kernel
OUTPUT: kernel-devel ... some thing such.

What can i conclude from the above...? Is kernel source installed. If yes, location where i can find the source.

From some sources on the net, I came to know that source if present, will be in the location, "/usr/src/linux" . In my machine, I don't find any directory by name linux under "usr/src".

Under /usr/src, there is 3 directories available in my machine.
1.debug 2.Kernel 3.redhat

There are some header files and '.c' files present in the directory "kernel", i do not know if it is the one related to kernel source.

Thank you.
 
Old 12-30-2008, 11:45 PM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
the first queries a specific package

the second queries ALL packages then searches for packages that contain kernel in the name

man rpm for more options

you didn't post the entire response form the command so I couldn't tell you if kernel source is installed or not.
 
Old 12-31-2008, 04:10 AM   #3
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,062

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
You seem not to have the kernel source installed; have you tried your package manager to install the source (assuming that you want it installed)?

You can find things with 'locate'; if you try this, for newly installed things, you will first need to run 'updatedb' (although, locate usually finds too much and you have to use the '| grep some_name' trick that you already know to filter things).

Quote:
What can i conclude from the above...?
That you are in some confusion about the kernel and the kernel source? You have the first, but not the second, seemingly.
 
  


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
what is the difference between fork and exec command? brownaryan Linux - Newbie 2 06-30-2008 05:04 PM
Difference between less and more command atul_sp Linux - Server 5 06-21-2008 05:14 AM
lv command difference between -L and -l vinodkumarmj Linux - Software 2 05-30-2006 09:04 AM
Difference between Console, Shell, and Command Prompt Anupam Pathak Linux - Newbie 3 10-23-2005 04:40 AM
Command difference?? partimegeek Linux - Newbie 3 04-26-2004 05:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:40 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