Product SiteDocumentation Site

11.3.2. Recompiling binaries from source RPMs

If you just want to recompile the files in a source RPM, you can use the --recompile option. The --recompile option tells the rpmbuild command to recompile the binary application from a source RPM.
For example:
rpmbuild --recompile package.src.rpm
This is the same as installing the source RPM and then running rpmbuild -bc --clean with the package spec file.
Note
There is no difference between --recompile and --rebuild in RPM 4.1. RPM 4.2 fixes this problem.