Results 1 to 10 of 11
Hello,
I am trying to generate a binary for my platform using the rpm --rebuild command and i get a unknown option message. Looks like since RH linux 8.0, the ...
- 06-26-2003 #1Just Joined!
- Join Date
- May 2002
- Posts
- 9
rpm --rebuild option
Hello,
I am trying to generate a binary for my platform using the rpm --rebuild command and i get a unknown option message. Looks like since RH linux 8.0, the --rebuild command has been obsoleted and some forums advise using the rpmbuild(after installing it) option.I am trying to find the source for rpmbuild package and install it so that I can use it but havent been able to find the source.
Gurus, can you please point me to the right place to find it.Are there any other options that I can use to rebuild the source rpm ??.I have tried rpmfind.net but to no sucess
My machine architecture is i686.
- 06-26-2003 #2Linux Engineer
- Join Date
- Apr 2003
- Location
- Sweden
- Posts
- 796
What are you after??...do modify your current rpm-database or to build your own rpm-packages??
RegardsRegards
Andutt
- 06-26-2003 #3Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
I'm guessing that what you're after is simply rpmbuild --rebuild <rpmname>.
- 06-26-2003 #4Just Joined!
- Join Date
- May 2002
- Posts
- 9
Yes all I want to do is build the rpm packages. But the command rpm --rebuild says unknown option.
I tried using the rpmbuild option and even that gives me an unknown option message.Any ideas??.
Kernel 2.0.20-6 RH 9.0
- 06-26-2003 #5Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
Are you sure that you typed it correctly? rpmbuild --rebuild is supposed to work.
- 06-27-2003 #6Just Joined!
- Join Date
- May 2002
- Posts
- 9
Yep,
I tried running rpmbuild again and it says "bash : Unknown command".
My current shell is bash.
I looked under /etc/bin and I did not find rpmbuild there. Even man rpmbuild says no entry for rpmbuild.How can I find out if rpmbuild is actually installed?.
Can anyone tell me where can I get the rpmbuild package from??.I tried rpmfind.net but did not find anything much there.
By the way I am running Redhat 9.0 , kernel 2.0.20-6
Thanks
- 06-27-2003 #7Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
I had always thought that rpmbuild would be in the rpm package, but apparently that was not the case. Not that I check, I find that it is in the rpm-build package. That might also explain why you didn't find it, since you were searching without the hyphen.
- 06-27-2003 #8Just Joined!
- Join Date
- May 2002
- Posts
- 9
So how do I run the rpmbuild package then?.Where should I look for??
Is it a standard package that comes with the standard installation or do I need to download this package source separately.If yes, where can I find it??
I tried the redhat netowrk and it lists me the rpm-build package for 1386 architecture and for RH 8.0.I have a i686 and am running RH 9.0
Appreciate your help.
- 06-27-2003 #9Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
Try this one:
ftp://ftp.sunet.se/pub/Linux/distrib...-0.69.i386.rpm
It doesn't hurt that it is i386; i686 is backwards compatible with i386.
- 06-27-2003 #10Linux Engineer
- Join Date
- Jan 2003
- Location
- Lebanon, pa
- Posts
- 994
try rpmbuild -ba file.spec


Reply With Quote
