Build RPMS

From INIwiki
Jump to: navigation, search

Build and RPM file from an RPMS file

rpmbuild --rebuild whatever.src.rpm

it will then build rpms for you in the following location /usr/src/redhat/RPMS/i386

Then install as usual with the rpm command

rpm -Uhv whatever.rpm

[edit] Fedora 13 x64

You will need a few things to build an RPM from the src

yum install gcc-c++

Possibly gcc also

yum install gcc

Then you can build with...

rpmbuild --rebuild whatever.src.rpm

Which can be found here (assuming you built as root user)

/root/rpmbuild/RPMS/x86_64/whatever.rpm
Personal tools