LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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, 01:43 PM   #1
corbis_demon
Member
 
Registered: Jun 2004
Location: India
Distribution: CLFS
Posts: 515

Rep: Reputation: 36
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, 01: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, 01:56 PM   #3
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,477

Rep: Reputation: 191Reputation: 191
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, 01: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: 46
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, 02:09 PM   #5
corbis_demon
Member
 
Registered: Jun 2004
Location: India
Distribution: CLFS
Posts: 515

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


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


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