Click to See Complete Forum and Search --> : installing src.rpm oin rh8.0


CaptainPinko
02-24-2003, 05:30 PM
how do you install a source rpm (ie. *.src.rpm and (someone back me up here) *.srpm too) in rh8.0? i search here and tried
rpmbuild --rebuild amsn.src.rpm
and it appeared to work but then when i ls ed i didn't see a new .athlon.rpm nor did i get any results when i rpm -qa | grep amsn any help would be appreciated

mdwatts
02-24-2003, 07:25 PM
The last whatever number of lines while rebuilding the source rpm should tell you where it was written to.

wrote ...

Likely somewhere in /usr/src/Redhat/RPMS

Rebuilding a src.rpm does not install the resulting rpm package, but only creates and then you need to manually install yourself.

CaptainPinko
02-24-2003, 07:56 PM
what type of package would something being compiled for a P4 i686?

now after i did the rpmbuild --rebuild i looked in the /usr/src/redhat/ folers and all were empty except for the one in /noarch which resembled the name of the source package i built and that was supposed to be an application (amsn to be precise)... is it safe to say soemthing went wrong

CaptainPinko
02-24-2003, 09:33 PM
so i looked in my RedHat 8.0 (189) super bible and it says

1- install src.rpm w/ rpm -i
2- cd /usr/src/redhat/SPECS
3- rpm -bp packagename.spec
rpm does not support -bp but rpmbuild does so i would assume that i what is meant
4- cd /usr/src/redhat/package/BUILD/packagename

and then it informatively says...
5- You can now make changes to the files in the package's BUID directory. Read the README, Makefile, and other documentation files for details on how to build the individual package.


i guess the question is now does anoyone know how to make an compiled rpm out of this mess?

mdwatts
02-25-2003, 09:16 AM
rpmbuild --rebuild amsn.src.rpm

is correct for Redhat 8.0.

Are you sure it completed successfully as the compile may have failed on dependencies.

Did you see a

wrote ... /usr/src/Redhat.... packagename.rpm

at the end of the rpmbuild --rebuild process?