LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-15-2007, 04:34 AM   #1
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Rep: Reputation: 31
Thumbs up Different between src.rpm and rpm


Hello, all Linux expert. I fairly new to Linux. I have uses Linux OS shorter that half year.

I have a question which is what is the difference between src.rpm and rpm ?

Thanks for oyur help.

Your help is greatly aprpeciated by me and others.
 
Old 04-15-2007, 04:55 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
If I'm not completely mistaken, .src.rpm is an rpm (RedHat Package Manager = RPM) package which has the source code of a program inside, whereas plain .rpm is an rpm package which has the binary files of a program inside. Shortly said, if you want to install a program (to use it), you download and install .rpm package, and if you wish to get the source code (to do something with it before installing), you download and install .src.rpm which installs the source, not the pre-compiled binary.
 
Old 04-15-2007, 05:04 AM   #3
x_terminat_or_3
Member
 
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 342

Rep: Reputation: 38
Hi there.

When you tell your system to install an RPM, it will extract the contents of the RPM (which is a CPIO archive), and put it in the directories mandated by the package. It will also execute the bits of script code that are embedded in the RPM to make sure your new package is configured properly.

Now when you install a src.rpm, it doesn't tell you where it installed it, although 9 times out of 10, it puts it in /usr/src/REDHAT or so.

You can use gnome's archive manager file-roller to view the files inside the rpm
 
Old 04-17-2007, 07:17 AM   #4
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Original Poster
Rep: Reputation: 31
Thanks for all your explanation.
Thanks.
Thanks.
Thanks.
Thanks.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
is it ok to use i386 rpm for i686 & how about src rpm amolgupta Linux - Software 4 05-01-2013 08:45 AM
How can I generate / build and RPM from *.src.rpm file sreekumartg Red Hat 3 02-23-2007 05:23 PM
How do I re-package a .src.rpm to mdk.rpm GlennsPref Mandriva 3 05-20-2006 06:41 PM
Help building an .rpm from a .src.rpm ssenuta Linux - Software 6 04-10-2006 10:36 PM
.src.rpm, .i386.rpm and .i686.rpm hhegab Linux - Software 2 06-19-2003 07:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:04 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
Open Source Consulting | Domain Registration