Sunday, January 26, 2014

Install Source RMP on Centos/Redhat

1. Prepare the build environment and get the dependencies. Do those following command under your root home directory :
2. Put the source rpm file at the root of your home directory and then run this command to rebuild the rpm under your system :
(*replace  including ‘< >’ with your package name. you can put the source package under /rpmbuild/SOURCES as well to archive it.)
3. Install the RPM :

Shell
1
2
cd /rpmbuild/RPMS
rpm -i <package-0.0-0.x86_64.rpm>

No comments: