[KLUG Members] building from rpm source

Dennis members@kalamazoolinux.org
Sat, 01 Jun 2002 12:37:35 -0400


Tony Gettig wrote:
> 
> I usually just grab the rpm for whatever app I'm trying to install, or
> grab the tarball and compile it. But I thought hey, I wanna learn how to
> install from a source rpm. Nothing better to do on a Friday night at
> 11:40 PM. :)
> 
> So here's what I did:
> 1) rpm -ivh mypackage.rpm
> 2) rpm --rebuild mypackage.rpm
> 
> Well, that fails with the message "tar: Warning: the -I option is not
> supported; perhaps you meant -j or -T?"
> 
> I get the same message when using the --recompile option.
> 
> Amy I doing this right? Is there a better way? Any pointers in the right
> direction are appreciated. A few variations searching for this error on
> Google didn't give me any ideas. Thanks tons!
> 
> --
> Tony Gettig

#1 - Don't do #1 yet. And, 'mypackage.rpm' is a .src.rpm, isn't it?
#2 Did you su to root? I think you have to be root to access
/usr/src/redhat/RPMS/<i386>, that is where the default of rpm --rebuild
will put the new rpm, at least on my machine.

Once you rebuild the src.rpm it will put an rpm in
/usr/src/redhat/RPMS/<i386> that you can then rpm -ivh
/usr/src/redhat/RPMS/<i386>/<mypackage.rpm>

man rpm is your friend.
-- 
Dennis