LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-30-2004, 12:43 PM   #1
corbis_demon
Member
 
Registered: Jun 2004
Distribution: CLFS
Posts: 523

Rep: Reputation: 38
Can't install src.rpm


Hi,
Can someone tell me how the source code rpm's should be installed.I don't know what option should be passed after rpm command.I tried -bp,but it didn't work.Help.
 
Old 06-30-2004, 12:56 PM   #2
l1fe
LQ Newbie
 
Registered: Jun 2004
Posts: 10

Rep: Reputation: 0
.src.rpm is completely different from .rpm, at least to my knowledge (I'm a newbie too :P)
 
Old 06-30-2004, 12:56 PM   #3
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
It depends what version of rpm is installed on your system. For RPM4.1 and greater included with most recent rpm distros the command is:

# rpmbuild --rebuild <name of source rpm>

for RPM4.0 and earlier it's:

# rpm --rebuild <name of source rpm>

The process creates/builds a new rpm in some subdirectory of /usr/src; it usually tells you where the rpm is placed. That's the rpm you install.
 
Old 06-30-2004, 12:59 PM   #4
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
When you rpm a source rpm look in
/usr/src/rpm/RPMS/
or
/usr/src/rpm/SRPMS/
for the rpm to install
 
Old 06-30-2004, 01:09 PM   #5
corbis_demon
Member
 
Registered: Jun 2004
Distribution: CLFS
Posts: 523

Original Poster
Rep: Reputation: 38
Thanks guys, for the help.
 
  


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
install src.rpm ust Linux - Software 7 10-13-2005 08:34 AM
how to install a .src.rpm labced501 Mandriva 11 10-07-2004 03:59 PM
how to install *.src.rpm vanhelsing Linux - Software 1 06-10-2004 08:35 AM
rpm install from src kcella Linux - Software 2 11-19-2003 05:19 PM
How to install src.rpm gexiaofei Linux - Software 9 08-05-2003 02:47 PM

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

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