Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-11-2001, 06:09 PM   #1
Registered: Jun 2001
Location: 28N,82W
Distribution: XP,Ubuntu 9
Posts: 472

Rep: Reputation: 30
Talking How to install packages from 'source rpm's?

This is seemingly a stupid question.
But I would like to know how to install a package from what they call 'source rpm'?
I have seen some packages come as xxx.src.rpm.

Last edited by concoran; 11-11-2001 at 06:28 PM.
Old 11-12-2001, 03:04 AM   #2
Registered: Aug 2001
Location: CT, USA
Distribution: Mandriva 2008
Posts: 105

Rep: Reputation: 15
I always thought the source code rpm was just that, an rpm for installing the source code on your machine. So, if you want to tinker with it or compile it just for the exercise, you can, but if you just want to execute, you don't need the source rpm.
Old 11-12-2001, 05:45 AM   #3
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
Directory paths may vary between distros, but something like this should work:

rpm -ivh file.src.rpm
cd /usr/src/RPM/SPECS/
rpm -ba file.spec
cd ../RPMS/i386
rpm -ivh file*rpm
The initial install puts the source code, patch files, and spec (compile instructions) in various directorys. The the ba section is for Build All - which builds the rpm going through all the stages specified in the spec file).
Old 11-13-2001, 02:03 PM   #4
Senior Member
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
You can make .rpm file by running rpm --rebuild <filename>.src.rpm
This will compile the source code to binary files and then make a regular rpm-package like the ones found on the internet.

There is also an option called [b]--recompile[b] I think, this is supposed to compile the source and leave the binaries as they are. Haven't tried this optin my self.


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 09:21 PM
Are source RPM's and binary RPM's installed the same way? Simon Adebisi Linux - Software 3 06-28-2005 03:45 AM
Converting source archives to binary RPM's Icarus315 Linux - Software 10 01-11-2005 09:31 AM
rpm's won't install -- help drumma64 Linux - Software 5 06-05-2003 08:02 AM
Source RPM's GtkUser Linux - Software 3 04-02-2003 03:57 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:17 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration