LinuxQuestions.org
Review your favorite Linux distribution.
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 08-18-2011, 04:40 AM   #1
linnet
LQ Newbie
 
Registered: Aug 2011
Posts: 6

Rep: Reputation: Disabled
Kernel source


I'm trying to install the kernel source and this is what happens. Could anyone let me know what I'm missing?


[root@localhost src]# rpm -ivh kernel-2.6.35.13-92.fc14.src.rpm
1:kernel ########################################### [100%]
[root@localhost src]# rpm -q kernel-2.6.35.13-92.fc14.src.rpm
package kernel-2.6.35.13-92.fc14.src.rpm is not installed
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 08-18-2011, 05:16 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
that package is not installed. a filename is not a package name. try "rpm -q kernel-2.6.35.13-92.fc14.src"
 
Old 08-18-2011, 05:23 AM   #3
linnet
LQ Newbie
 
Registered: Aug 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
same result

[root@localhost src]# rpm -q kernel-2.6.35.13-92.fc14.src
package kernel-2.6.35.13-92.fc14.src is not installed

BTW - I don't see the kernel source installed in any case. Isn't it supposed to be under /usr/src ?

Last edited by linnet; 08-18-2011 at 05:29 AM.
 
Old 08-18-2011, 05:27 AM   #4
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,674
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Once you install any package, it is recommended to run updatedb through root.
 
Old 08-18-2011, 05:31 AM   #5
linnet
LQ Newbie
 
Registered: Aug 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
[root@localhost src]# updatedb
[root@localhost src]# rpm -q kernel-2.6.35.13-92.fc14.src
package kernel-2.6.35.13-92.fc14.src is not installed
[root@localhost src]# rpm -q kernel-2.6.35.13-92.fc14.src.rpm
package kernel-2.6.35.13-92.fc14.src.rpm is not installed
 
Old 08-18-2011, 05:33 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
well, it is clearly installed, I just got the package name wrong, run "rpm -qa | grep kernel" and it'll be in the list there.
 
Old 08-18-2011, 05:36 AM   #7
linnet
LQ Newbie
 
Registered: Aug 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
I don't see it there

[root@localhost src]# rpm -qa | grep kernel
kernel-2.6.35.6-45.fc14.i686
abrt-addon-kerneloops-1.1.13-2.fc14.i686
kernel-headers-2.6.35.13-91.fc14.i686
[root@localhost src]#
 
Old 08-18-2011, 07:10 AM   #8
linnet
LQ Newbie
 
Registered: Aug 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
I tried rpm -ivh again and it did the same thing, i.e. it didn't tell me that it was already installed. So I guess it is not getting installed eventhough it shows 100%


[root@localhost src]# rpm -ivh kernel-2.6.35.13-92.fc14.src.rpm
1:kernel ########################################### [100%]
[root@localhost src]#
 
Old 08-18-2011, 07:36 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
Fedora (14) : Source packages are installed to /root/rpmbuild/SOURCES/,
when you use root to install. ( su ).

If you have the recommended rpmbuild account in /home/<name>/rpm*
http://www.linuxquestions.org/questi...1-a-766486/#13
.. and do as unprivileged user $ rpm -Uvh <source-package.src.rpm>,
the files are unpacked to /home/<name>/rpms/SOURCES/.

No source packages get an entry in the rpm data base.
Hence no reply from 'rpm -qa'.

..
 
2 members found this post helpful.
Old 08-18-2011, 07:58 AM   #10
linnet
LQ Newbie
 
Registered: Aug 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
knudfl,

You're right. I see them hiding in /root/rpmbuild/SOURCES/

Thanks
 
  


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
Manual nvidia install needs kernel source, unable to select source in YOU sirius57 Linux - Hardware 2 12-04-2007 06:11 PM
LXer: Howto: build Linux kernel module against installed kernel w/o full kernel source tree LXer Syndicated Linux News 0 09-03-2006 09:21 PM
Debain kernel source or Linux kernel source? kushalkoolwal Debian 4 11-28-2005 02:56 PM
apt-get kernel-source is installing the wrong kernel source. JordanH Ubuntu 10 07-08-2005 06:42 PM
difference between "pure" kernel source, and .deb packaged kernel source microsoft/linux Debian 1 06-19-2005 11:28 PM


All times are GMT -5. The time now is 12:32 PM.

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