Some software packages end with. src. rpm. These software packages are rpm packages that contain source code and need to be compiled during installation. There are two ways to install such software packages:
Method 1:
1. Execute rpm-I your-package.src.rpm
2. cd/usr/src/redhat/SPECS
3. rpmbuild-bp your-package.specs A specs file with the same name as your package
4. cd/usr/src/redhat/BUILD/your-package/a directory with the same name as your package
5 ../configure this step is the same as compiling common source code software. You can add Parameters
6. make
7. make install
Method 2:
1. Execute rpm-I you-package.src.rpm
2. cd/usr/src/redhat/SPECS (the first two steps are the same as method 1)
3. rpmbuild-bb your-package.specs A specs file with the same name as your package
In this case, under the directory/usr/src/redhat/RPM/i386/(depending on the specific package, it may be i686, noarch, etc, there is a new rpm package, which is a compiled binary file. Run:
Rpm-I new-package.rpm installation is complete.
Author "heipark's note"