6. Compiling a source RPM
A source RPM (SRPM) package typically contains a gzipped tar archive with the source files, and an RPM spec file.
To compile and install a source RPM package, you can do the following:
bash$ rpm --rebuild foo.src.rpm
…
(lots of output)
…
Wrote: /usr/src/packages/RPMS/i386/foo.i386.rpm
…
+ exit 0
…
bash$ rpm -Uvh /usr/src/packages/RPMS/i386/foo.i386.rpm
foo ##################################################
If all goes well, you can skip everything below. If not, you may want to cd /usr/src/packages/BUILD/foo-Version, read on below, and try to figure out how to compile the application
![]() | NOTE |
|---|---|
If for some reason you do not like to use rpm, you can unpack the source RPM (see Section 5>), and compile manually (see the next few sections). |
