src.rpms are SOURCE rpms.
If you just want to install a pre-compiled binary, then you must not user a src.rpm. just regular i386.rpm, or whatever.rpm.
If you want to use the SOURCE rpm to do a compilation yourself, then
rpm -ivh archive.src.rpm
Then you have to cd /usr/src/redhat
The source code archive is in /usr/src/redhat/SOURCES, in the form of a tar.gz archive. If you wish you can unpack that and manually do the installation to wherever you want.
If you just want to initiate the "automated" process, then you would
cd /usr/src/redhat/SPECS
and do
rpmbuild -bb package.spec
This will then initiate an automagic unpacking of the archive, compilation, and building of an rpm all ready for you to install, with the usual
rpm -ivh package.rpm
The built rpm is put into the appropriate /usr/src/redhats/RPMS/ subdirectory as far as I recall.
man rpmbuild
for all the gory details.
No comments:
Post a Comment