LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 07-23-2005, 01:45 PM   #1
kpachopoulos
Member
 
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 704

Rep: Reputation: 30
cannot build source rpm/ rpm questions


First i found 2 tutorials. The first one just says to do "rpm --rebuild pkg.src.rpm" and the second one to do "rpm -Uvh pkg.src.rpm", change some parameters in /usr/src/redhat/..., and do "rpm -ba pkg.spec".
What's the difference? I think in the first one, you get the chance to edit some details. In the second one you just build it- because you haven't found a x86_64.rpm, as in my occasion

However, when i do:
"rpm -ba pkg.spec ", i get "-ba: unknown option" and
"rpm --rebuild", i get "unknown option" as well.

I have also installed the packages:
rpm-libs-4.4.1-21
redhat-rpm-config-8.0.34-1
rpm-4.4.1-21
rpm-python-4.4.1-21
rpm-build-4.4.1-21
fedora-rpmdevtools-1.1-1.fc4

What's the solution to my proble?
 
Old 07-23-2005, 04:00 PM   #2
bsmith121
Member
 
Registered: Aug 2003
Distribution: Fedora Core 6, Gentoo
Posts: 34

Rep: Reputation: 15
I believe you're looking for
Code:
rpmbuild --rebuild
or
Code:
rpmbuild -ba
 
Old 07-24-2005, 03:17 AM   #3
kpachopoulos
Member
 
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 704

Original Poster
Rep: Reputation: 30
Re: cannot build source rpm/ rpm questions

Quote:
Originally posted by nocturna_gr
First i found 2 tutorials. The first one just says to do "rpm --rebuild pkg.src.rpm" and the second one to do "rpm -Uvh pkg.src.rpm", change some parameters in /usr/src/redhat/..., and do "rpm -ba pkg.spec".
What's the difference? I think in the first one, you get the chance to edit some details. In the second one you just build it- because you haven't found a x86_64.rpm, as in my occasion
bsmith121 has informed me, that its'not "rpm", it's "rpmbuild". But what's the difference between "rpmbuild --rebuild" and "rpm --ba". Is this what i mentioned earlier? I'm afraid that man isn't so clear.
 
Old 07-24-2005, 09:15 AM   #4
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Re: Re: cannot build source rpm/ rpm questions

Quote:
Originally posted by nocturna_gr
bsmith121 has informed me, that its'not "rpm", it's "rpmbuild". But what's the difference between "rpmbuild --rebuild" and "rpm --ba". Is this what i mentioned earlier? I'm afraid that man isn't so clear.
The commands were changed in rpm 4.x, so your commands are old and won't work on modern distros using rpm 4.x.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel-source-2.6.5-7.src.rpm requires kernel-dummy to build!? fizzdandantilus Suse/Novell 5 12-02-2004 12:48 PM
RPM build is changing part of it's source files areli Linux - Software 1 05-09-2004 03:34 PM
How to build an RPM from a source file ? redhat_zephyr Linux - General 1 03-12-2004 01:35 AM
binary vs source RPM (and other RPM questions) calimer Linux - Software 4 06-22-2003 12:33 AM
RPM Source Build errors wdingus Linux - Software 1 01-04-2003 06:34 AM


All times are GMT -5. The time now is 05:40 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration