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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-17-2004, 11:48 PM
|
#1
|
|
Member
Registered: Mar 2003
Posts: 404
Rep:
|
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?
|
|
|
|
07-18-2004, 09:18 AM
|
#2
|
|
Member
Registered: Nov 2002
Location: /texas/austin/home/desk
Distribution: Gentoo
Posts: 341
Rep:
|
what does "man rpm" say about src rpm's?
|
|
|
|
07-18-2004, 10:15 AM
|
#3
|
|
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,572
|
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.
|
|
|
|
07-18-2004, 10:18 AM
|
#4
|
|
Member
Registered: Jul 2004
Location: the other side of morning
Distribution: PCLOS, Fedora Core, Slackware and Mepis.
Posts: 54
Rep:
|
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>.
|
|
|
|
07-18-2004, 11:02 AM
|
#5
|
|
Senior Member
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607
Rep:
|
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  .
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:35 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|