1

I am working on a maven build that needs to make an rpm. Is there a native rpmbuild utility that will run on MacOSX? So far I have found some old abandoned macports/darwin projects and people recommending running virtual box/parallels in virtual VM mode. Is there really no native tool for building rpms on Mac?

2
  • 1
    Where should the rpms be installed afterwards, on a Linux system?
    – nohillside
    Apr 12 '13 at 19:37
  • We strongly discourage questions that ask a yes/no answer. Consider editing this to describe exactly what practical problem you are facing if you don't actually want answers that state - "No - there is no native package manager rpm that ships with OS X."
    – bmike
    Aug 9 '13 at 10:29
2

Building RPMs or more specifically the binaries/libraries within them on a Mac is not a safe bet because you can run into a number of issues involving architecture mismatches, among other issues like library linking.

In short, if you're building for Linux, you really want to build on Linux. It's possible to cross-compile, but IMHO this is incredibly difficult on OS X.

1
  • What does the rpm contain, if made via maven then likely to be pure java - if so then this answer does not apply
    – mmmmmm
    Aug 9 '13 at 10:28
1

I've tried homebrew to install somewhat recent versions of the tool. The package for rpm installs fine but rpmbuild does not work.

1

You don't need to seperately install rpmbuild. After installation of rpm, the command rpmbuild also works.

1
  • How do you install rpm?
    – mmmmmm
    Sep 13 '16 at 21:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .