Review your favorite Linux distribution.
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 09-25-2003, 11:37 PM   #1
Registered: Sep 2003
Location: lafayette, la
Distribution: RHL 6.2, FC 3, Ubuntu 14.04, Ubuntu 16.04
Posts: 112

Rep: Reputation: 15
rpm question

what is a srpm and how does it differ form any other rpm?
Old 09-25-2003, 11:56 PM   #2
Registered: Aug 2003
Posts: 134

Rep: Reputation: 16
it is a source rpm, and will build the rpm for your platform and kernel. more optimized for your system is what i get out of it. i may be wrong.
Old 09-26-2003, 11:45 AM   #3
Registered: Aug 2003
Distribution: Dead Rat
Posts: 182

Rep: Reputation: 48
Yah, it's a source RPM. It will install the sources for a program in the same tree that Red Hat (or whoever packaged it) originally used to build the regular RPM. Usually somewhere in the /usr/src/redhat tree. It will also usually include the spec file used to build the regular RPM.

There is rarely any reason to use them. Red Hat supplies them because they are proactive on GPL - instead of giving sources to whoever asks for them, they make the sources widely and easily available. Smart business decision for an Open Source vendor - look at all the bad publicity Lindows and Caldera got for making their sources difficult to obtain.

If you always install everything from RPM you are unlikely to benefit from rebuilding your programs from source. However, if you install libraries or other shareable objects by some method other than RPM, the dependency tracking that RPM provides will no longer work, so you might need to rebuild anything that uses the non-packaged objects.

Also, if you want to rebuild a package with options Red Hat does not use - for example, if you want the native LDAP support in Samba 2.x - but you want all the Red Hat patches, then you can unpackage the source, modify the spec file and build a new RPM. This RPM can then be installed on your system and you will have all the dependency checks etc. that RPM provides. I recommend if you do this you change the name of the RPM - in this example, from samba to samba-ldap - so that you don't accidentally step on your modified package while doing routine patching or system upgrades.


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
RPM question merchtemeagle Linux - Newbie 1 11-08-2004 03:25 PM
RPM Question jlivio Linux - Newbie 2 03-06-2004 08:24 PM
rpm question tgkspike Linux - Newbie 2 02-02-2004 10:08 PM
RPM question aizkorri Programming 1 04-20-2002 02:02 PM
RPM question rootlinux Linux - Newbie 4 04-13-2002 08:47 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:28 AM.

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