LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-02-2003, 04:07 AM   #1
GtkUser
Member
 
Registered: Sep 2002
Location: Canada
Distribution: Redhat 9.0
Posts: 637

Rep: Reputation: 30
Source RPM's


Is the procedure for installing a source rpm different than a regular rpm?
 
Old 04-02-2003, 07:43 AM   #2
vladkrack
Member
 
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334

Rep: Reputation: 30
The procedure is almost the same, you can intall it with rpm -i, but the package is not included in the RPM database. Also you must have installed the package rpm-build ...

Hope that helps ...
 
Old 04-02-2003, 08:11 AM   #3
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
vladkrack is right, you need the rpm-build package installed (which you probably have). There are many ways to do it, but the method I use to build source RPMs is:

rpm --rebuild foo.src.rpm

Where foo is the name of whatever the source RPM is. If all goes well (and you don't see it bomb out with error messages), it'll compile and build the binary RPM (sometimes more than one) and save it somewhere. Look for a line towards the end of the output that says "Wrote file /usr/src/RPM/RPMS/i386/foo-i386.rpm." From that point, all you gotta do is install that RPM normally, like so:

rpm -ivh foo-i386.rpm

There are other options that come in handy. One I like to use, since I never plan on using these RPMs on any machine other than this one, is the target option. For example:

rpm --rebuild --target athlon foo.src.rpm

This makes it build with optimizations specifically for the AMD Athlon. See the rpm man page for more information. Good luck!
 
Old 04-02-2003, 04:57 PM   #4
GtkUser
Member
 
Registered: Sep 2002
Location: Canada
Distribution: Redhat 9.0
Posts: 637

Original Poster
Rep: Reputation: 30
Thanks.
 
  


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
difference between source rpm's and tarballs saipraveen Linux - Newbie 3 10-17-2005 10:21 PM
Are source RPM's and binary RPM's installed the same way? Simon Adebisi Linux - Software 3 06-28-2005 04:45 AM
Converting source archives to binary RPM's Icarus315 Linux - Software 10 01-11-2005 10:31 AM
RPM's cleekjc Linux - Newbie 1 07-29-2003 05:50 PM
How to install source rpm's? concoran Linux - Newbie 3 11-13-2001 03:03 PM


All times are GMT -5. The time now is 10: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration