Installing software in SRPM format in Fedora Core Linux
To install a source package from the Fedora Core source directory, do the following:
1) Insert the Fedora Core DVD into the DVD drive. It should mount automatically.
2) Change to the source directory on the DVD i.e. type cd /media/cdrw_dvdrom/SRPMS in the Terminal.
3) Choose the package you want to install (type ls to see the packages) and install it using the following command:
rpm -iv packagename*.src.rpm
Replace packagename with the name of the package you are installing. The source is installed in the Fedora Core source tree (/usr/src/redhat/SOURCES). Spec files are copied to /usr/src/redhat/SPECS.
4) Change to the SPECS directory as follows:
cd /usr/src/redhat/SPECS
5) Unpack the source code as follows:
rpmbuild -bp packagename*.spec
6) The package’s source code is installed to the /usr/src/redhat/BUILD/package directory, where package is the name of the software package.
7) You can now make changes to the files in the package’s BUILD directory. Read the README file, Makefile, and other documentation files for details on how to build the individual package.
