Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

Can it be done?

I need to create an installation package for OS X (10.5 and on) from a Debian machine according to configuration given at request time (this configuration will change configuration files that are a part of my package and are installed together with the application). Is there any way of changing or manipulating with an already made (using the OS X PackageMaker) package contents?

I did see in previous posts a claim that OS X packages can only be made (packaged) and edited on Apples. Is there a way around it?

I've tried manipulating with no success, the Flat package format and the meta-package (OS X 10.3).

share|improve this question

migrated from Oct 17 '11 at 15:37

This question came from our site for professional and enthusiast programmers.

What configuration files do you need to change? The whatever.pkg file is really just a folder. – William Jackson Oct 17 '11 at 15:50
@WilliamJackson - The configuration files used are my own apps files. The pkg is indeed a folder, yet, no archiver I've tried managed to extract the files and then package it back correctly... – NightRider Oct 18 '11 at 8:15

I don't know for certain if it can be done, but BitRock's InstallBuilder can generate OS X packages on Linux. Perhaps there is some means to un-package the artifact and then supply that as input to InstallBuilder.

share|improve this answer
I'm baffled why the question ended up on superuser instead of or even SO as the solution will definitely involve programming. – David J. Liszewski Oct 17 '11 at 16:07
Took a look at the link you supplied, it actually looks nice and might have suffice as the answer if not for the very very high price. We can't afford it here... I was wondering the same about why the question ended up here – NightRider Oct 23 '11 at 16:41
@NightRider If your package is for an open source project, they do offer free licenses Otherwise, I agree, it isn't cheap. – David J. Liszewski Oct 24 '11 at 15:06
Have seen it :o), but unfortunately I can't claim to be working on an open source project... So I am still trying to come up with some idea to solve my problem – NightRider Oct 24 '11 at 15:40
up vote 0 down vote accepted

It has been a while, but in the end I managed to pack it as flat package wrapped as tar, and manipulate the content using a script that simply replaces some dummy files that were packaged along just for that purpose. Not a pretty one, but it worked by the time we needed that, and to be honest, we haven't gone back to dealing with that in order to find a nicer solution. If anything changes, I will (eventually) update the answer.

share|improve this answer

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.