LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-17-2004, 11:48 PM   #1
ludwig W
Member
 
Registered: Mar 2003
Posts: 404

Rep: Reputation: 30
how to install src.rpm files?


Hi,
I understand that in order to build and rpm from an src.rpm file you need todo the following:
Code:
rpmbuild --rebuild xxxx.src.rpm
However, once I do that (in my case I'm trying to do this for bittorrent-3.4.2-
1.src.rpm)

All I find on my system is a directory called bittorrent-3.4.2 in /var/tmp witha series of files in.
I don't seem to find an rpm file there, although there is anrpm-tmp.58774 in /var/tmp


Any idea s how I get the rpm I was trying to build?
 
Old 07-18-2004, 09:18 AM   #2
je_fro
Member
 
Registered: Nov 2002
Location: /texas/austin/home/desk
Distribution: Gentoo
Posts: 341

Rep: Reputation: 30
what does "man rpm" say about src rpm's?
 
Old 07-18-2004, 10:15 AM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
A relatively quick way to find the binary rpm, if it was created, it to run (as root) updatedb, which updates the locatedb (a database of all installed files). Then use locate to find all files ending in .rpm. That will give you the file name and path to it's location.
In SuSE, when rpm's are built successfully, they are put in /usr/src/packages/RPMS/i386 or thereabouts. Gentoo probably does something similar.
It you still can't find the binary, you could try the older, yet still functional way to build an rpm from src.rpm. rpm -i to install the src.rpm. Cd to /usr/src/packages/SPEC, or wherever Gentoo puts the spec file, and run rpm -bb <filename>.spec from there, then look in the RPMS directory for the binary.
 
Old 07-18-2004, 10:18 AM   #4
diablo111
Member
 
Registered: Jul 2004
Location: the other side of morning
Distribution: PCLOS, Fedora Core, Slackware and Mepis.
Posts: 54

Rep: Reputation: 15
At the end of the rpmbuild output, it tells you that it wrote /<full path to file.rpm>...just use tab complete to rpm -Uvh /<path and rpm>.
 
Old 07-18-2004, 11:02 AM   #5
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Quote:
Originally posted by bigrigdriver
In SuSE, when rpm's are built successfully, they are put in /usr/src/packages/RPMS/i386 or thereabouts. Gentoo probably does something similar.
Why are we talking about Gentoo? Gentoo doesn't even use RPMs. I suppose you could build one, if you were a developer and needed to package something for everybody else, but the normal manner of installing programs under Gentoo is to compile programs from source using a script called an ebuild. I don't even have rpm installed on my system, though I do have rpm2targz. Even the two packages that I have installed from pre-compiled binary for one or another reason are provided as tar.gz archives, not RPMs.

And no one claimed that ludwig W was using Gentoo anyway, so I am very confused as to why the distro is being referred to in any way .
 
  


Reply



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 On
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
Please Demystify .src.rpm files koodoo Linux - Newbie 5 05-01-2005 04:44 PM
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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:35 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration