LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (http://www.linuxquestions.org/questions/fedora-35/)
-   -   cannot build source rpm/ rpm questions (http://www.linuxquestions.org/questions/fedora-35/cannot-build-source-rpm-rpm-questions-346037/)

kpachopoulos 07-23-2005 01:45 PM

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?

bsmith121 07-23-2005 04:00 PM

I believe you're looking for
Code:

rpmbuild --rebuild
or
Code:

rpmbuild -ba

kpachopoulos 07-24-2005 03:17 AM

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.

reddazz 07-24-2005 09:15 AM

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.


All times are GMT -5. The time now is 01:17 PM.