Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a large Java enterprise application that is required to output rpm and deb packages.

Currently this means that we build the application on two different boxes, one with CentOS and the other with Ubuntu 10.04.

In an ideal world I'd be able to run the build on either of these to systems and produce rpm and deb packaging in a single pass.

Is this possible?

share|improve this question
up vote 6 down vote accepted

Have a look at .

share|improve this answer
that looks just the thing – Gareth Davis Apr 26 '12 at 12:53
AFAIK fpm does not provide a way to provide a package repository for several clients. Related: – guettli Nov 28 '14 at 7:39

See the Open Build Service

share|improve this answer

Ideally you should be building packages in a chroot environment, using something like pbuilder for debs and mock for RPMs. Mock can be run on Ubuntu so you can do everything on a single build machine. Chroot build environments ensure that packages are built cleanly and aren't affected by any weirdness in the host machine. They also use the correct dependencies when building for different OS versions.

share|improve this answer
Not quite sure why a chroot environment is useful in this case. but if it lets me build both types of packages on a single disto I'll have a look – Gareth Davis Apr 27 '12 at 7:35
Answered in the answer. – mgorven Apr 27 '12 at 16:34

Your Answer


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.