I'm in the position of needing to make a few RPMs at work, which is something fairly new to me.

I'd really love to hear which docs, tutorials. or presos have been useful for you for understanding:

a) how to make them well without making noobish mistakes

b) any other handy tricks that you would otherwise miss if you didn't spend a day poring over the man pages.

What's been the most helpful for you?

I'm coming from a developer background, so I'm comfortable with making and compiling software manually, and I've fiddled around with making formula for homebrew but rpm is a new, powerful and shiny tool to me.

  • i know what helped me alot originally was making rpms that just install static files, and worry about compiling C++ code and such in a second phase of learning.
    – Sirex
    Jul 24, 2011 at 12:17

7 Answers 7


If you want a guide that cuts through the noise, I recommend these

Creating RPM's for Linux

JBoss 5.1.0A RPM Spec

But you should keep the Fedora guide bookmarked, as you'll be coming back to it.

I also found Maximum RPM: Taking the Red Hat Package Manager to the Limit very useful as a reference.

Tip: If you're building RPMs on Centos, this link gets your build environment set up nice and quickly:

Set Up an RPM Build Environment under CentOS


The thing that helped me the most was looking at source rpms. Install the source rpm for the smallest app you can find, and look at its spec file.

Fedora packaging guide was useful too, but very heavy on doing things right, to the point doing it at all got a little lost in the noise.


I keep hearing good things about this one... runs


If you just need to package a bunch of files, without doing complicated stuff with deps and scripts you can give a try to fpm. Quick and painless.


So far the most useful outline I've found of the build process is on the IBM DeveloperWorks site:


This preso on slideshare has been useful for skimming too:



try out following link



Look at the output of the compile, and make sure you bundle up all the files that 'make install' lays down in your spec file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.