LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   downloaded my kernel's source....i need to extract it, how? (https://www.linuxquestions.org/questions/linux-newbie-8/downloaded-my-kernels-source-i-need-to-extract-it-how-173489/)

apu95 04-22-2004 06:38 PM

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

njbrain 04-22-2004 08:12 PM

"rpm -i <name of file>" should do the trick.
Noah

apu95 04-22-2004 08:14 PM

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

njbrain 04-22-2004 08:17 PM

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

apu95 04-22-2004 08:18 PM

woot! thx for the replies!

Apu

njbrain 04-22-2004 08:23 PM

So, it works now?
Noah

apu95 04-22-2004 08:25 PM

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

Apu

fancypiper 04-22-2004 08:28 PM

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

Electro 04-23-2004 12:44 AM

You can use midnight commander to view or extract files from rpms.

apu95 04-23-2004 10:15 AM

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 :p
anyone know why this might've happened?

thx!
Apu

fancypiper 04-23-2004 12:36 PM

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


All times are GMT -5. The time now is 06:49 AM.