Link to home
Start Free TrialLog in
Avatar of lolaferrari
lolaferrariFlag for United Kingdom of Great Britain and Northern Ireland

asked on

linux .src.rpm

Hello,

perhaps someone could enlighten me - how do you install an rpm that is .src.rpm  on linux?
ASKER CERTIFIED SOLUTION
Avatar of legolasthehansy
legolasthehansy

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of lolaferrari

ASKER

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):

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.

Avatar of legolasthehansy
legolasthehansy

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

Regards,
Krishna
[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
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