LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 04-30-2005, 11:04 PM   #1
koodoo
Member
 
Registered: Aug 2004
Location: a small village faraway in the mountains
Distribution: Fedora Core 1, Slackware 10.0 | 2.4.26 | custom 2.6.14.2, Slackware 10.2 | 11.0, Slackware64-13
Posts: 345

Rep: Reputation: 32
Please Demystify .src.rpm files


Hi,

Now it seems very silly to ask such a simple question but I really don't know what to do with

the .src.rpm files for a package.

Now what I know is that these are the source files of the package and would get us rid of many dependencies as we will compile these on our system instead of the rpm's which are compiled on some default system.

I also know that we could use these .src.rpm files to build rpm's on our own system.

Also that we could get the tarballs of the package if I extract them.

But the information is in bits and pieces and I am not very clear of the concepts.So I am reading "Maximum RPM" to understand in detail about the Red-Hat Package Management System. Now this would obviously take time which at present I do not have.I have to install a few files that are the .src.rpm files.

I can easily install from the rpm's and the tarballs but have no idea about the .src.rpm files. I mean this file is just in front of me which I want to install but I can't do anything

So, please could anyone give a short tutorial on installing from these source files.
I'll continue reading "Maximum RPM".

Thanx in anticipation,

Please Help.
 
Old 04-30-2005, 11:29 PM   #2
Kdr Kane
Member
 
Registered: Jan 2005
Distribution: SUSE, LFS
Posts: 357

Rep: Reputation: 30
The .rpm part just means that you can install the sources for the program with your RPM installer.

.src just indicates that they are source files.

This doesn't mean that you use the RPM package manager to compile the source files. Usually, you change into the source directory and run:

make ./configure
make install

You might consider finding the correct RPMs (not the source files) that contain the binaries for your distribution.
 
Old 04-30-2005, 11:51 PM   #3
detpenguin
Senior Member
 
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,091

Rep: Reputation: 45
download the src.rpm file

as root, in a terminal, type
rpm -ivh <packagenamehere>.src.rpm

this will place sources in your /usr/src/SOURCES file and a spec file in your /usr/src/SPECS file.

cd into the /usr/src/SPECS file and type:
rpmbuild -bb <packagenamehere>.spec

and this will create an rpm file in your /usr/src/RPMS/i386 file...you can install it from there using

rpm -ivh <packagenamehere>.rpm

Last edited by detpenguin; 04-30-2005 at 11:52 PM.
 
Old 05-01-2005, 04:44 AM   #4
koodoo
Member
 
Registered: Aug 2004
Location: a small village faraway in the mountains
Distribution: Fedora Core 1, Slackware 10.0 | 2.4.26 | custom 2.6.14.2, Slackware 10.2 | 11.0, Slackware64-13
Posts: 345

Original Poster
Rep: Reputation: 32
Hi,

Thanx for the great!!! help detpenguin

The method you mentioned works flawlessly and in no time I have installed many .src.rpms

Only difference was that on my system the SOURCES, SPECS, RPMS etc directories were under /usr/src/redhat/




Thanx Kdr Kane now I know how to get the tarballs from the .src.rpms. So now I can also install packages in the usual way (i.e. using the tarrballs)

Thanx a lot again detpenguin and Kdr Kane you've been a great help.

Thanx everyone.


Last edited by koodoo; 05-01-2005 at 04:54 AM.
 
Old 05-01-2005, 07:29 AM   #5
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
You can rebuild source rpms without installing them. As root you would do,

Code:
#rpmbuild --rebuild file.src.rpm
 
Old 05-01-2005, 04:44 PM   #6
koodoo
Member
 
Registered: Aug 2004
Location: a small village faraway in the mountains
Distribution: Fedora Core 1, Slackware 10.0 | 2.4.26 | custom 2.6.14.2, Slackware 10.2 | 11.0, Slackware64-13
Posts: 345

Original Poster
Rep: Reputation: 32
Thanx for the help reddazz
 
  


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
QUERY: unusual .src.rpm files.... kevingpo Fedora 1 07-23-2005 12:31 AM
how to install src.rpm files? ludwig W Linux - General 4 07-18-2004 11:02 AM
Difference between src.rpm files and source.rpm files ja_nch Red Hat 2 09-06-2003 06:12 PM
How to install from .src.rpm files Baran Linux - Newbie 2 09-02-2003 09:30 AM
rpm switches for src files krumholz Linux - Software 4 06-18-2003 12:07 PM


All times are GMT -5. The time now is 12:41 PM.

Main Menu
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