LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 09-17-2003, 12:07 PM   #1
madchmst82
LQ Newbie
 
Registered: Sep 2003
Distribution: Redhat 9
Posts: 11

Rep: Reputation: 0
RPMS vs SRPMS


Hi,
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, 12:40 PM   #2
MasterC
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.

Cool
 
Old 09-17-2003, 12:40 PM   #3
acb67
Member
 
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 code....it 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, 09:01 PM   #4
madchmst82
LQ Newbie
 
Registered: Sep 2003
Distribution: Redhat 9
Posts: 11

Original Poster
Rep: Reputation: 0
Got it, Thanks guys
 
Old 09-23-2003, 06:03 AM   #5
velska
Member
 
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.
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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