The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Kernel source not found. (can't install network card drivers) Virtuality Linux 9 03-25-2008 04:58 AM
TCP/IP Source pradeep83rawat Shell Programming and Scripting 2 11-13-2007 07:57 AM
Oracle 9i install: Error in invoking target install of makefile chris2005 HP-UX 5 02-21-2007 05:45 AM
how install source file HP-UX mwagz HP-UX 3 02-08-2007 06:12 AM
. and source learn Shell Programming and Scripting 1 08-16-2006 04:30 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-13-2008
Sivaswami's Avatar
Registered User
 

Join Date: Mar 2007
Location: India
Posts: 55
Thumbs up How to install .src.rpm ? ( source rpm )

Hi,

I have got few RPM's from rpmfind.net ( mainly gcc ).
But it seems to be src files instead of the image.
so I think we have to build the src files according to target machine using rpmbuild.
Can any one help me with

1) Various options of rpm build that have to be taken care
2) Steps to follow after rpmbuild
3) How a tar.gz install can be made into rpm
4) How to gather missing additional libraries ( missing rpm's ) along with current rpm's.

I have used apt-get in some linux distributions where we get
apt-get install <s/w name>
But with RPM I need some more inputs.

Thanks in advance,
Sivaswami Jeganathan.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 06-13-2008
Moderator
 

Join Date: Feb 2007
Posts: 1,665
You can use alien to install rpm package on a Debian system.

Regards
Reply With Quote
  #3 (permalink)  
Old 06-13-2008
Sivaswami's Avatar
Registered User
 

Join Date: Mar 2007
Location: India
Posts: 55
its src.rpm not rpm .
Reply With Quote
  #4 (permalink)  
Old 06-14-2008
Registered User
 

Join Date: Jun 2008
Posts: 3
A .src.rpm is made up of a minimum of two files: a .spec file and a tarball. There may also be patch files as part of the .src.rpm. When you install the .src.rpm, the files are installed into /usr/src/.../SPECS and /usr/src/.../SOURCES. When the binary rpm has been compiled, you will find it in /usr/src/.../RPMS. The /.../ is different for redhat (and derivatives), Mandriva, and Suse.

The tarball can be installed just as any other tarball. Get any tarball and write a .spec file for it, and you have a .src.rpm.

The options that rpmbuild needs should be in the .spec file. The additional options that you can give to rpmbuild modify the result of applying the .spec file to the direct the build.

If you are missing any dependencies in order to build an rpm, you will have to find and install them. There are several tools that can ease the process to varing degrees of success, such as up2date, urpmi, and apt4rpm.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 10:44 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0