Tuesday, May 20, 2008
Installing Source RPMs
Like normal RPMs, a source RPM (SRPM) is installed with the rpm -i rpmname.src.rpm command. However, this command installs only the contents of the SRPM in the various /usr/src/redhat subdirectories, which you can then use to create a binary RPM. for the purpose of our discussion on SRPM, I've installed the source for the Linux kernel from the freely available RHEL source RPMs, which you can download for yourself from ftp.redhat.com.
Once downloaded from the source of your choice, proceed to install it as if it were a regular RPM, in this case with the following command:
# rpm -ivh kernel-*.src.rpm
As noted earlier, you can now use the source code and spec files in various /usr/src/redhat subdirectories to build and install the package.
Once downloaded from the source of your choice, proceed to install it as if it were a regular RPM, in this case with the following command:
# rpm -ivh kernel-*.src.rpm
As noted earlier, you can now use the source code and spec files in various /usr/src/redhat subdirectories to build and install the package.
Labels:
source rpm
Subscribe to:
Post Comments (Atom)

0 comments:
Post a Comment