How do I build a source RPM using rpmbuild?

Updated -

Building a source RPM will compile the source code of a particular package into an executable binary on your machine. This is useful when there is no working binary RPM for the current kernel or Red Hat Enterprise Linux version you are using. A source RPM can usually be identified by its filename: <rpm-name.version>.src.rpm

A quick and easy way to build a source RPM is to...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content