LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 04-22-2004, 07:38 PM   #1
apu95
Member
 
Registered: Apr 2004
Location: Montreal, Canada
Distribution: Ubuntu
Posts: 39

Rep: Reputation: 15
downloaded my kernel's source....i need to extract it, how?


i just downloaded my kernel's source (2.4.22-10mdk) cuz i needed it to install some drivers. it came in .src.rpm format. how do i go about extracting it (only extracting it, no need to install it again right?) into the /usr/src folder?

thx!
Apu
 
Old 04-22-2004, 09:12 PM   #2
njbrain
Member
 
Registered: Jan 2004
Location: Rhinelander, WI, U.S.
Distribution: Slackware
Posts: 416

Rep: Reputation: 30
"rpm -i <name of file>" should do the trick.
Noah
 
Old 04-22-2004, 09:14 PM   #3
apu95
Member
 
Registered: Apr 2004
Location: Montreal, Canada
Distribution: Ubuntu
Posts: 39

Original Poster
Rep: Reputation: 15
but if i do rpm -i <nameoffile>.rpm wont it install it? cuz i already have that kernel, i just need the source files to be copied to my /usr/src directory
 
Old 04-22-2004, 09:17 PM   #4
njbrain
Member
 
Registered: Jan 2004
Location: Rhinelander, WI, U.S.
Distribution: Slackware
Posts: 416

Rep: Reputation: 30
Installing a source rpm works the same way as installing a tarball. So, just use rpm to install the source, and you should be fine.
Noah
 
Old 04-22-2004, 09:18 PM   #5
apu95
Member
 
Registered: Apr 2004
Location: Montreal, Canada
Distribution: Ubuntu
Posts: 39

Original Poster
Rep: Reputation: 15
woot! thx for the replies!

Apu
 
Old 04-22-2004, 09:23 PM   #6
njbrain
Member
 
Registered: Jan 2004
Location: Rhinelander, WI, U.S.
Distribution: Slackware
Posts: 416

Rep: Reputation: 30
So, it works now?
Noah
 
Old 04-22-2004, 09:25 PM   #7
apu95
Member
 
Registered: Apr 2004
Location: Montreal, Canada
Distribution: Ubuntu
Posts: 39

Original Poster
Rep: Reputation: 15
i havent tried it yet, but im 99% sure it'll work...im on xp pro now workin on some school crap
ill try it later and ill post if any problems arise....
thx again!

Apu
 
Old 04-22-2004, 09:28 PM   #8
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
See Maximum RPM for all the stuff for rpms. I think you need a flag --buildpkg or something like that. Also see:
man rpm
info rpm

An easier way: Configure your package manager (urpmi in command line, but easier to use and control than the clicky thingy front end) and install/uninstall with that.

uname -r
urpmi kernel-sources

# I have Linux installed, now how do I work some stuff like some software and file managers?
# I can't figure out what software I want and how to install/uninstall it
The table of equivalents, replacements, analogs of Windows software in Linux
# Find software here
Freshmeat
Sourceforge
rpmfind
# Guides to software management
LNAG - How do I install a program I downloaded from the Internet?
Rute Guide's software explanation
You might want to check out CheckInstall to manage source code installations/uninstallation
# File managers
Midnight Commander
Gentoo file manager
ROX-Filer

# Mandrake links
Mandrake home page
Mandrake Users website
Easy urpmi config for Mandrake
urpmi mini-HOWTO
All You Ever Wanted to Know About Urpmi But Never Dared Asking Before
Maximum RPM
rpmfind
You didn't install the developmental packages? As root, command:
urpmi gcc
An Introduction to the Midnight Commander. You can install it by commanding:
urpmi mc
Midnight Commander home page
 
Old 04-23-2004, 01:44 AM   #9
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
You can use midnight commander to view or extract files from rpms.
 
Old 04-23-2004, 11:15 AM   #10
apu95
Member
 
Registered: Apr 2004
Location: Montreal, Canada
Distribution: Ubuntu
Posts: 39

Original Poster
Rep: Reputation: 15
hmmm....i just tried rpm -i kernel-2.4.22.10mdk-1-1mdk.src.rpm and it gave me these two error messages

warning: user nplanel does not exist - using root
warning: group nplanel does not exist - using root

its asking for a user nplanel? what the hell
anyone know why this might've happened?

thx!
Apu
 
Old 04-23-2004, 01:36 PM   #11
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
Developer's name, probably, if not found, it uses root. I have seen that a lot of times.
 
  


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
Eliminate dependency on gentoo from package installed from downloaded source aeruzcar Linux - Distributions 2 10-02-2005 01:50 PM
Kernel's CryptoAPI irfanhab Programming 1 09-17-2004 08:35 PM
Downloaded the new kernel Source from Mandrake update, now what do i do? Junior41180 Mandriva 7 08-27-2004 07:00 PM
How to extract the 16 byte source name field (Name to add) from the NetBIOS fram (NBF Bassam Linux - Networking 0 05-23-2004 05:58 AM
kernel's ring buffer sixth_sense Linux - General 1 04-01-2004 03:58 AM


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