Bin To Pkg Better Link
No – even for a static Go binary that has no dependencies, packaging still adds immense value:
| Pitfall | Standard Conversion | "Bin to PKG Better" Solution | | :--- | :--- | :--- | | | Binary breaks if moved. | Relocatable PKG using @executable_path or @loader_path . | | Root privilege abuse | Demands sudo for everything. | Fine-grained authorization: AuthorizationRequirement in distribution.dist. | | No version rollback | Overwrites old version; can't revert. | Flat package with versioned receipts; OS preserves previous version. | | Missing man pages/docs | Binary only. | Adds doc and man components to the PKG payload. | bin to pkg better
often requires the system to "install" data from that image to the hard drive, effectively doubling the space used for a single title. Compression No – even for a static Go binary
# Cleanup rm -rf pkgroot temp.iso
Packages offer atomic upgrades and easy rollbacks. | | Missing man pages/docs | Binary only