Mar 19, 2009

Build RPMS from source RPMS

If the RPM supplied by your distribution is not sufficent 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
wget http://www.invoca.ch/pub/packages/pound/pound-2.4.4-1.src.rpm
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.

No comments: