I want to install parts or the whole content of a preexisting open source package to another directory than what the package is set to. I assume this means I need to modify the package, correct? At least I'm not aware of a way to redirect the installation path when installing.

If a modification is necessary as I assume it is, how can do that? Is there a tool that can open a preexisting package and allow you to make changes for the install path? I'm not overly familiar with the command line tools of Xcode, but they do seem geared towards starting with the source code, rather than modifying an existing installer.

I don't really need to achieve any other resulting changes than to get my paths and likely modify permissions on installed files. But the modifications may be more involved considering postinstallation scripts and so on.

I've looked at the Packages app and that seems great for building an installer from scratch, but I haven't found a way to import a preexisting package.

  • What open source software? – user90735 Nov 22 '14 at 1:05
  • The open source package is Nodejs, but it's a general question. Specifically I want to install into "~/usr/local" rather than "/usr/local". The reason for that is I don't want to use sudo to run installed tools, nor do I want to modify permissions in "/usr/local/". – MiB Nov 22 '14 at 1:12
  • The reason I asked in most open source code is setup to be relocatable. Also in this case in addition to the installation package there are separate 32 bit and 64 bit versions in gzipped tar archives available. You could use one of those, they don't have complete paths from root, or use something like Pacifist to unarchive the package to some other location. – user90735 Nov 22 '14 at 1:27
  • There's also a tool called Payload Extractor, I believe that will allow you to extract the contents of those packages to another location. – user90735 Nov 22 '14 at 1:32
  • @DavidKoontz OK, but extraction not an install make, no? Checking out Payload Extractor. Maybe it does exactly what I want. – MiB Nov 22 '14 at 3:26

You must log in to answer this question.

Browse other questions tagged .