Some software packages end with. SRC. rpm, which includes Source codeThe RPM package must 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.