Visit Our UNIX and Linux User Community

How to install .src.rpm ? ( source rpm )

Thread Tools Search this Thread
Operating Systems Linux SuSE How to install .src.rpm ? ( source rpm )
# 1  
Old 06-13-2008
MySQL How to install .src.rpm ? ( source rpm )


I have got few RPM's from ( 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.
# 2  
Old 06-13-2008
You can use alien to install rpm package on a Debian system.

# 3  
Old 06-13-2008
its src.rpm not rpm .
# 4  
Old 06-15-2008
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.

Previous Thread | Next Thread
Test Your Knowledge in Computers #438
Difficulty: Medium
TypeScript is a free and open-source subset of JavaScript developed by Microsoft.
True or False?

10 More Discussions You Might Find Interesting

1. AIX

Rpm issue with autoconf-2.63-1.AIX6.1.noarch.rpm

dears i am trying to install the autoconf-2.63-1.aix6.1.noarch.rpm but its shows the below error message . P700_dev/svn/dependencies>rpm -i autoconf-2.63-1.aix6.1.noarch.rpm error: failed dependencies: m4 is needed by autoconf-2.63-1 P700_dev/svn/dependencies> (6 Replies)
Discussion started by: thecobra151
6 Replies

2. Shell Programming and Scripting

How to make RPM not write to RPM database if RPM fails to deploy?

How to make RPM not write to RPM database if RPM fails to deploy? IE I create an rpm spec file that contains the following if then exit 1 fi My rpm will fail at deployment, but if I do rpm -qa , I can see the rpm in the rpm db (3 Replies)
Discussion started by: 3junior
3 Replies

3. Shell Programming and Scripting

Extract RPM name from path to .rpm file

It's the end of the day and I just can't get my head around this. I'm trying to extract just the name of the RPM from the path to a .rpm file. So from: /home/me/rpm/RPMS/i386/nagios-our-plugins-1.2-6.i386.rpmI need to extract 'nagios-our-plugins'. I can't get the awk syntax right: awk '{... (5 Replies)
Discussion started by: aussieos
5 Replies

4. Red Hat

Source RPM issue

Hi, I have created one soruce rpm by using some help file on net. when i installed the rpm with command "rpm -i xxx.rpm", by default it got installed under "/usr/src/redhat/SOURCES/. I want to install these source file under /application/myapps/. Also i want some guidence to improve the source... (0 Replies)
Discussion started by: rajeshatbuzz
0 Replies

5. Linux

Converting source rpm to binary rpm

Hi, I need to install an rpm file,but I only have '.src.rpm' version of it. I want to convert it to a binary rpm. so I tried this rpm --rebuild somethin.src.rpm But I am gettin '--rebuild:Invalid option' as output Is there another way to rebuild source rpm.? Thanks in... (2 Replies)
Discussion started by: eamani_sun
2 Replies

6. UNIX for Advanced & Expert Users

Does anybody know Kernel-2.4.33 source rpm URL??

Hi Everybody, I want to download the kernel-2.4.33 source rpm.Does anybody know from where should i download?? As in there are .gz or .bz2 versions of kernel packages are available. Any help is welcome. Thanks, Sriram (2 Replies)
Discussion started by:
2 Replies

7. Linux

Source Of Rpm's

Hi every one...i am new to linux and have a problem with rpm's. Do we have any facility to chk out the source code of rpm's.If yes plz specify the location so that i can explore a few... secondly can i know where we can get the source code of standard shell commands like sleep,ls,top....etc.I... (4 Replies)
Discussion started by: bssandilya
4 Replies

8. UNIX for Advanced & Expert Users

how to install apache-1.3.20-16.src.rpm into rh7.3

hi all expert, can antone tell me ho to install apache-1.3.20-16.src.rpm into redhat 7.3. I ready try many many time and using many method i still can not install this apache. Please help me................................... (1 Reply)
Discussion started by: foong
1 Replies

9. Linux

Failed dependencies of rpm / how does RPM check for ?

Hey, I've a problem installing a package. rpm -ivh brings the errors: is needed by is needed by But I have installed the Java SDK like requested and the files are on the disk. But I have no idea how to find out, why rpm cann't find them. I have also... (2 Replies)
Discussion started by: mod
2 Replies

10. Programming

compile rpm-4.0 source

Hello Unix experts, I downloaded rpm-4.0 source from and tried to make it. There are something I could not understand. - and instead of Makefile - file INSTALL doesn't show clearly the steps of compiling What are these 2 files, and... (2 Replies)
Discussion started by: eddie
2 Replies

Featured Tech Videos