[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: How to compile from SRPMS



Step 1. rpm -i foo.src.rpm

This will install the srpm in /usr/src/redhat.
Then cd to /usr/src/redhat/SPECS. You will find something of the form
foo.SPEC
Then run rpm -ba foo.SPEC
This will unpack everything, build the binary rpm and also recreate the
SRPM. Look towards the end of the run for a message saying that it wrote
something. There will be (at least) two such messages. The first one will
be for the binary rpm.
All you need to do is 
rpm -Uvh foo-binary.rpm
Last thing I do is to delete the binary rpm since you can always recreate
it from the new srpm in /usr/src/redhad/SRPMS.

Good luck.

-- 
----------Time flies like the wind. Fruit flies like a banana.----------------
--------Stranger things have happened but none stranger than this.-------------
Steven W. Orr      steveo world std com     <site of former bang addr:-)>
---------------"Listen to me! We are all individuals."-------------------------

On Tue, 8 Dec 1998, Stan Brown wrote:

=>	Sorry, I am new to RedHat. I find a need to compile a couple of things
=>	to get them working corectly (system time problems). I grabed and rpm
=>	-i'd the SRPM's, but they don't seem to include makefiles!
=>
=>	How are you supposed to compile them without Makefiles?
=>
=>	Thanks.
=>
=>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]