|
Search:
Advanced search
|
Browse by category:
|
How do I install a .src.rpm file? |
|||||
I have installed a .src.rpm file, but cannot seem to run it. A src.rpm archive is the source code for a program, and needs to be compiled before you can use it. A .src.rpm is installed as any other rpm file - "rpm -ivh mypackage.src.rpm" This installs the source code, usually into /usr/src/redhat/BUILD A compressed archive of the source code will be place in /usr/src/redhat/SOURCES A .spec file will be installed into /usr/src/redhat/SPECS The above spec file contains the necessary directives, to build the source code into an rpm pacakge. To build the rpm package, you need to change to the SPECS directory - cd /usr/src/redhat/SPECS Then type "rpmbuild -bb mypackage.spec" - this will start the build process. Then once the compile is complete, the installable rpm package will be placed in /usr/src/redhat/RPMS You can now install the package you have just built - rpm -ivh /usr/src/redhat/RPMS/mypackage.rpm The above process is based on package all dependencies being satisified. (You will get errors during the build process if you have dependancy errors).
|
|||||