LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 03: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, 04:16 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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, 04: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 04:29 AM.
 
Old 08-18-2011, 04:27 AM   #4
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Once you install any package, it is recommended to run updatedb through root.
 
Old 08-18-2011, 04: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, 04:33 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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, 04: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, 06: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, 06:36 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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, 06: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



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 05: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 08:21 PM
Debain kernel source or Linux kernel source? kushalkoolwal Debian 4 11-28-2005 01:56 PM
apt-get kernel-source is installing the wrong kernel source. JordanH Ubuntu 10 07-08-2005 05:42 PM
difference between "pure" kernel source, and .deb packaged kernel source microsoft/linux Debian 1 06-19-2005 10:28 PM

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

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