MacOS – How to download pre-built binaries from MacPorts without installing

macosmacportsopen sourcepackage-management

I see as of 2.0 MacPorts is hosting pre-built binaries, which it would install by default if licensing is present and compatible. I'm looking for a more current version of rsync than ships by default with Macs, and has the necessary patches (which I believe are missing in the rudix makefile) and I would then distribute it like a regular install, for example nesting in a NetBoot or pushing out over a patch management solution instead of installing locally.

Where can I download the prebuilt binary, which I'm assuming I could treat like a package install, including man pages?

Best Answer

Macports guide says

MacPorts can pre-compile ports into binaries so applications need not be compiled when installing on a target system. MacPorts may create two types of binaries: archives and packages.

However I found issues with packages a few years ago (which might have been fixed) and the following is more of how I view MacPorts.

If MacPorts does have a binary package which it does in most cases then it behaves exactly as a package install including man pages. The only difference is that you need the command line compiler and the MacPorts sources (not the sources of the packages) installed and that the code is in /opt/local.

Also due to shared libraries you can't just take an executable and run it it probably depends on other shared libraries which MacPorts also provides.

As for centralisation you could easily install on one machine and then rsync or rdist to all the others (or use other macOS replication mechanisms) or as MacPorts pointed out set up a local repo.