Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 09-17-2003, 01:07 PM   #1
LQ Newbie
Registered: Sep 2003
Distribution: Redhat 9
Posts: 11

Rep: Reputation: 0

I was wondering what SRPMS are exactly. I mean, I think they're the sources for RPMS so you could build yourself? I was wondering if there were any benefits to building your own RPMS and how I would do that. Thanks
Old 09-17-2003, 01:40 PM   #2
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
SRPMS are source RPMs. It's similar in the gain you recieve from bulding from source, without actually having to do so. Regular RPM's are binaries built on another machine, so they aren't tailored for your CPU and it's specs. When you build from RPM's you get the benefit of having it right now, no problems as it's been tested on several different platforms/setups to make sure it will work on a variety of systems.

Old 09-17-2003, 01:40 PM   #3
Registered: Jun 2002
Posts: 50

Rep: Reputation: 15
SRPM's are source rpms. when you install and srpm:
1. a spec file is put into /usr/src/packages/SPECS
2. the source files (which may or may not be compressed) will be put into /usr/src/packages/SOURCES

what you need to do is open up the spec file and make any changes you want. then run an rpm -ba xxx.spec to rebuild the rpm. once this finished, the newly built rpm will be put into /usr/src/packages/RPMS.

one advantage of using a source rpm is that you can use the same srpm on any architecture. essentially, when you run the rpm -ba, you are compiling the is just easier and more organized this way. the srpm can check for dependencies as well as other things instead of just blindly compiling the code. this way, the rpm that is made from the srpm is, in a way, custom built for your system.
Old 09-17-2003, 10:01 PM   #4
LQ Newbie
Registered: Sep 2003
Distribution: Redhat 9
Posts: 11

Original Poster
Rep: Reputation: 0
Got it, Thanks guys
Old 09-23-2003, 07:03 AM   #5
Registered: Aug 2003
Location: Finland
Distribution: Fedora 14, Ubuntu 10.4 LTS
Posts: 65

Rep: Reputation: 15
Thanx from me, too

This was one of the "obvious" things that neither redhat installation guide or getting started guide covered, but started bugging me after it was obvious that I need to recompile some stuff for my system.


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
How to build rpms for RHEL4 Updates srpms dfowensby Red Hat 3 05-31-2005 12:08 PM
What is RPMS and SRPMS? guest Linux - Newbie 6 03-15-2005 04:54 PM
What is SRPMS? slackr007 Fedora 2 01-02-2005 03:01 PM
verifying srpms vs rpms w/ gpg sig ergo_sum Linux - Newbie 0 02-06-2004 10:04 PM
Problems creating openssl rpms from srpms darkcoder Red Hat 1 11-05-2003 09:30 PM > Forums > Linux Forums > Linux - Software

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