LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices



Reply
 
Search this Thread
Old 07-22-2005, 07:57 PM   #1
kevingpo
Member
 
Registered: Nov 2004
Location: Edinburgh, UK
Distribution: Fedora Core 3
Posts: 188

Rep: Reputation: 30
QUERY: unusual .src.rpm files....


What's the difference between an .rpm and a .src.rpm?

Well I know that .rpm is a Redhat Package used by the Package Manager. But when I installed a .src.rpm I notice that it just unpackaged the files to:

/usr/src/redhat/SOURCES/net-snmp-5.1.3.tar.gz
&
/usr/src/redhat/SPECS/net-snmp.spec

Hmm. I could've just downloaded the net-snmp-5.1.3.tar.gz file itself. But wait, I notice a .spec file with lots of perl scripting inside. Hmm, this must be used by a Redhat Add/Remove applications or some other installer. Does anyone know how to properly install this .src.rpm the way it was suppose to be installed? (and it's definitely not the oldskool tar zxvf way).
 
Old 07-23-2005, 01:31 AM   #2
rarsa
Member
 
Registered: Nov 2004
Location: Canada
Distribution: Puppy Linux/ Mint
Posts: 210

Rep: Reputation: 31
The rpm normally has the binary package (the one that you actually executes)
The src.rpm normally has the source code (from which the binaries are compiled)

An 'end user' shouldn't normally have to install src.rpm.

If you really need to install from source (e.g. you have very specific an unusual configuration requirements) then you normally have to go to the location where the source was installed and look for a file with the compilation instructions. e.g README or INSTALL or something like that). Then follow the compilation instructions making sure that you really understands each of the source configuration and compilation parameters.

Actually for Fedora you will rarelly require to directly install the rpm. It's better to install with yum as it will also install the required dependencies.

In this case if you want to install net-snmp do the following:

- Open a command console (Terminal Program) and type the following (without my comments)
Code:
# you need to be root to run YUM, so change to root
su

# Execute yum
yum install net-snmp
and that's it!

Last edited by rarsa; 07-23-2005 at 01:36 AM.
 
  


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
Please Demystify .src.rpm files koodoo Linux - Newbie 5 05-01-2005 05:44 PM
how to install src.rpm files? ludwig W Linux - General 4 07-18-2004 12:02 PM
Difference between src.rpm files and source.rpm files ja_nch Red Hat 2 09-06-2003 07:12 PM
How to install from .src.rpm files Baran Linux - Newbie 2 09-02-2003 10:30 AM
rpm switches for src files krumholz Linux - Software 4 06-18-2003 01:07 PM


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