Build RPMS from source RPMS

Thu, 19 Mar. 2009 by Thomas Bendler, approximately 1 min to read.

If the RPM supplied by your distribution is not sufficient for whatever reason you can easily recompile it using the source RPM. Here is an example session with Pound which is only provided as a source RPM:

yum -y install rpm-build
rpmbuild --rebuild pound-2.4.4-1.src.rpm
cd /usr/src/redhat/RPMS/i386
yum --nogpgcheck install pound-2.4.4-1.i386.rpm
rpm -ql pound

You have to disable the signature check because you haven’t signed the package yet.

Share on: