pkgsrc is still available on macOS as a package manager

uneven94341 pts0 comments

Install on macOS

Portable Package Management

pkgsrc is a framework for building over 25,000 open source software packages. It is the<br>native package manager on SmartOS, NetBSD, and Minix, and is portable across 23<br>different operating systems. Use one package manager across all of your systems!

MNX Cloud provide binary packages for SmartOS/illumos, macOS, Linux, and NetBSD.

XFCE 4.12 / Gnumeric / Inkscape

GIMP / XChat

Installing Node.js

Installing and running Jekyll (Ruby 2.3 version)

Choose Your macOS Package Set

Our primary packages for macOS are available for Apple Silicon<br>(arm64) running Sonoma (14.5) or newer.<br>Built from pkgsrc trunk, they are updated every few days.

ARM 14.5+

ARM 14.5+ (upgrade)

Intel 12.3+

Intel 12.3+ (upgrade)

# Copy and paste the lines below to install the Apple Silicon (arm64) set.<br># These packages are suitable for anyone running Monterey (14.5) or newer on<br># Apple Silicon CPUs, and are updated from pkgsrc trunk every few days.<br># This should only ever be performed once. Unpacking the bootstrap kit over<br># the top of an existing install will corrupt your package database.<br>BOOTSTRAP_TAR="bootstrap-macos14.5-trunk-arm64-20251114.tar.gz"<br>BOOTSTRAP_SHA="512a3c209fa0e83b4f614bc6ce11928c10b75cd0"

# Download the bootstrap kit to the current directory.<br>curl -O https://pkgsrc.smartos.org/packages/Darwin/bootstrap/${BOOTSTRAP_TAR}

# Verify the SHA1 checksum.<br>echo "${BOOTSTRAP_SHA} ${BOOTSTRAP_TAR}" | shasum -c-

# Verify PGP signature. This step is optional, and requires gpg.<br># curl -O https://pkgsrc.smartos.org/packages/Darwin/bootstrap/${BOOTSTRAP_TAR}.asc<br># curl -sS https://pkgsrc.smartos.org/pgp/ED09C4B0.asc | gpg2 --import<br># gpg2 --verify ${BOOTSTRAP_TAR}{.asc,}

# Install bootstrap kit to /opt/pkg<br>sudo tar -zxpf ${BOOTSTRAP_TAR} -C /

# Reload PATH/MANPATH (pkgsrc installs /etc/paths.d/10-pkgsrc for new sessions)<br>eval $(/usr/libexec/path_helper)

# Copy and paste the lines below to upgrade to the latest bootstrap. This<br># will overwrite the following files:<br># /opt/pkg/etc/mk.conf<br># /opt/pkg/etc/pkg_install.conf<br># /opt/pkg/etc/pkgin/repositories.conf<br># /opt/pkg/etc/gnupg/pkgsrc.gpg<br># This only ever needs to be done if any of the above files change, for example<br># if switching from pkgsrc.joyent.com to pkgsrc.smartos.org, or upgrading to a<br># newer OS package set.<br># Under normal operations "pkgin upgrade" is all you need to be up-to-date.<br>UPGRADE_TAR="bootstrap-macos14.5-trunk-arm64-20251114-upgrade.tar.gz"<br>UPGRADE_SHA="3a1a211baba328513c7d59194c1b5cc199848644"

# Download the upgrade kit to the current directory.<br>curl -O https://pkgsrc.smartos.org/packages/Darwin/bootstrap-upgrade/${UPGRADE_TAR}

# Verify the SHA1 checksum.<br>echo "${UPGRADE_SHA} ${UPGRADE_TAR}" | shasum -c-

# Verify PGP signature. This step is optional, and requires gpg.<br># curl -O https://pkgsrc.smartos.org/packages/Darwin/bootstrap-upgrade/${UPGRADE_TAR}.asc<br># curl -sS https://pkgsrc.smartos.org/pgp/ED09C4B0.asc | gpg2 --import<br># gpg2 --verify ${UPGRADE_TAR}{.asc,}

# Unpack upgrade kit to /opt/pkg<br>sudo tar -zxpf ${UPGRADE_TAR} -C /

# Ensure you are running the latest package tools.<br>sudo pkg_add -U pkg_install pkgin

# Clean out any old packages signed with the previous key.<br>sudo pkgin clean

# Upgrade all packages.<br>sudo pkgin -y upgrade

# Copy and paste the lines below to install the Intel set.<br># These packages are suitable for anyone running Monterey (12.3) or newer on<br># Intel x86 CPUs, and are updated from pkgsrc trunk every week.<br># This should only ever be performed once. Unpacking the bootstrap kit over<br># the top of an existing install will corrupt your package database.<br>BOOTSTRAP_TAR="bootstrap-macos12.3-trunk-x86_64-20240426.tar.gz"<br>BOOTSTRAP_SHA="2b151d12576befd85312ddb5261307998f16df2f"

# Download the bootstrap kit to the current directory.<br>curl -O https://pkgsrc.smartos.org/packages/Darwin/bootstrap/${BOOTSTRAP_TAR}

# Verify the SHA1 checksum.<br>echo "${BOOTSTRAP_SHA} ${BOOTSTRAP_TAR}" | shasum -c-

# Verify PGP signature. This step is optional, and requires gpg.<br># curl -O https://pkgsrc.smartos.org/packages/Darwin/bootstrap/${BOOTSTRAP_TAR}.asc<br># curl -sS https://pkgsrc.smartos.org/pgp/ED09C4B0.asc | gpg2 --import<br># gpg2 --verify ${BOOTSTRAP_TAR}{.asc,}

# Install bootstrap kit to /opt/pkg<br>sudo tar -zxpf ${BOOTSTRAP_TAR} -C /

# Reload PATH/MANPATH (pkgsrc installs /etc/paths.d/10-pkgsrc for new sessions)<br>eval $(/usr/libexec/path_helper)

# Copy and paste the lines below to upgrade to the latest bootstrap. This<br># will overwrite the following files:<br># /opt/pkg/etc/mk.conf<br># /opt/pkg/etc/pkg_install.conf<br># /opt/pkg/etc/pkgin/repositories.conf<br># /opt/pkg/etc/gnupg/pkgsrc.gpg<br># This only ever needs to be done if any of the above files change, for example<br># if switching from pkgsrc.joyent.com to pkgsrc.smartos.org, or upgrading to a<br># newer OS package set.<br># Under normal operations "pkgin upgrade" is all you need to be...

pkgsrc bootstrap packages smartos upgrade bootstrap_tar

Related Articles