James Bennet
James Bennet

Reputation: 603

How do I build RPMS?

How do I build RPMS under Red Hat?

I need to package a newer version of some software than is available from the repositories.

(I can build it locally already, its just the packaging that I need to do, so that I can use it on other machines)

I could just take the .spec file from the older version's SRPM and start from there, right? - But i'm brand new to packaging, any pointers?

Upvotes: 2

Views: 137

Answers (1)

sarnold
sarnold

Reputation: 104050

Starting with the existing SRPM is a fantastic first step -- trying to build one from scratch is an exercise in frustration, especially if your users expect it to work with previously packaged versions of the same tool.

You'll need to keep the documentation at rpm.org handy at all times. The Maximum RPM book is probably a little too dated now, but at one time it was always loaded in one of my browser tabs.

One thing to be very careful of is builds that work on your machine but aren't repeatable anywhere else. You really should get a dedicated building environment of some sort set up so you can have repeatable builds.

Upvotes: 3

Related Questions