linux .src.rpm

lolaferrari
lolaferrari used Ask the Experts™
on
Hello,

perhaps someone could enlighten me - how do you install an rpm that is .src.rpm  on linux?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Try this,

rpm --rebuild filename.src.rpm

then go to /usr/src/redhat/RPMS
you should be able to see the package in rpm format
rpm -ivh filename.rpm

Author

Commented:
Unfortunately that didn't work - dont see a similar option with -v
[root@machine kernels]# rpm --rebuild tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.src.rpm
--rebuild: unknown option

wget http://rpm.pbone.net/index.php3/stat/3/srodzaj/2/search/tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.src.rpm

[root@testbox tmp]# rpm -ivh tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.src.rpmerror: tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.src.rpm: not an rpm package (or package manifest):

Author

Commented:

The build package is installed
[root@testbox ~]# rpm -qa | grep rpm-build
rpm-build-4.8.0-12.el6.i686

[root@testbox ~]# rpm -qi rpm-build-4.8.0-12.el6.i686
Name        : rpm-build                    Relocations: (not relocatable)
Version     : 4.8.0                             Vendor: CentOS
Release     : 12.el6                        Build Date: Fri 12 Nov 2010 12:21:43 AM GMT
Install Date: Mon 08 Aug 2011 07:40:30 PM BST      Build Host: c5b2.bsys.dev.centos.org
Group       : Development/Tools             Source RPM: rpm-4.8.0-12.el6.src.rpm
Size        : 311998                           License: GPLv2+
Signature   : RSA/8, Sun 03 Jul 2011 05:45:31 AM BST, Key ID 0946fca2c105b9de
Packager    : CentOS BuildSystem <http://bugs.centos.org>
URL         : http://www.rpm.org/
Summary     : Scripts and executable programs used to build packages
Description :
The rpm-build package contains the scripts and executable programs
that are used to build packages using the RPM Package Manager.

11/26 Forrester Webinar: Savings for Enterprise

How can your organization benefit from savings just by replacing your legacy backup solutions with Acronis' #CyberProtection? Join Forrester's Joe Branca and Ryan Davis from Acronis live as they explain how you can too.

what is the error you get when you try to do rpm-build --rebuild .src.rpm

Regards,
Krishna

Author

Commented:
[root@testbox tmp]# rpm -ql rpm-build
/usr/bin/gendiff
/usr/bin/rpmbuild
/usr/lib/rpm/brp-compress
/usr/lib/rpm/brp-java-gcjcompile
/usr/lib/rpm/brp-python-bytecompile
/usr/lib/rpm/brp-strip
/usr/lib/rpm/brp-strip-comment-note
/usr/lib/rpm/brp-strip-shared
/usr/lib/rpm/brp-strip-static-archive
/usr/lib/rpm/check-buildroot
/usr/lib/rpm/check-files
/usr/lib/rpm/check-prereqs
/usr/lib/rpm/check-rpaths
/usr/lib/rpm/check-rpaths-worker
/usr/lib/rpm/config.guess
/usr/lib/rpm/config.sub
/usr/lib/rpm/debugedit
/usr/lib/rpm/desktop-file.prov
/usr/lib/rpm/find-debuginfo.sh
/usr/lib/rpm/find-lang.sh
/usr/lib/rpm/find-provides
/usr/lib/rpm/find-requires
/usr/lib/rpm/fontconfig.prov
/usr/lib/rpm/javadeps
/usr/lib/rpm/libtooldeps.sh
/usr/lib/rpm/macros.perl
/usr/lib/rpm/macros.php
/usr/lib/rpm/macros.python
/usr/lib/rpm/mkinstalldirs
/usr/lib/rpm/mono-find-provides
/usr/lib/rpm/mono-find-requires
/usr/lib/rpm/ocaml-find-provides.sh
/usr/lib/rpm/ocaml-find-requires.sh
/usr/lib/rpm/osgideps.pl
/usr/lib/rpm/perl.prov
/usr/lib/rpm/perl.req
/usr/lib/rpm/perldeps.pl
/usr/lib/rpm/pkgconfigdeps.sh
/usr/lib/rpm/pythondeps.sh
/usr/lib/rpm/rpmdeps
/usr/lib/rpm/rpmdiff
/usr/lib/rpm/rpmdiff.cgi
/usr/lib/rpm/tcl.req
/usr/share/man/man1/gendiff.1.gz
/usr/share/man/man8/rpmbuild.8.gz
/usr/share/man/man8/rpmdeps.8.gz

Author

Commented:
Installing tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.src.rpm
error: tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.src.rpm cannot be installed

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial