對這文章發表回應
發表限制: 非會員 可以發表
發表者: 冷日 發表時間: 2014/5/7 4:00:07
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:
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).
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).
Compiling a source RPM