Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
    
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 '11 at 12:17

7 Answers 7

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

http://www.ibm.com/developerworks/library/l-rpm1/

This preso on slideshare has been useful for skimming too:

http://www.slideshare.net/lovelace/rpm-packaging-101-old

share|improve this answer

try out following link

https://pmc.ucsc.edu/~dmk/notes/RPMs/Creating_RPMs.html

share|improve this answer

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.

share|improve this answer

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

share|improve this answer

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

share|improve this answer

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.

share|improve this answer

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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