Created
December 4, 2019 00:13
-
-
Save stellarpower/163fc09661212fab83b5782d32d84583 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Copy and paste the lines below to install the latest 64-bit set. | |
# | |
BOOTSTRAP_TAR="bootstrap-trunk-x86_64-20190317.tar.gz" | |
BOOTSTRAP_SHA="cda0f6cd27b2d8644e24bc54d19e489d89786ea7" | |
# Download the bootstrap kit to the current directory. | |
curl -O https://pkgsrc.joyent.com/packages/SmartOS/bootstrap/${BOOTSTRAP_TAR} | |
# Verify the SHA1 checksum. | |
[ "${BOOTSTRAP_SHA}" = "$(/bin/digest -a sha1 ${BOOTSTRAP_TAR})" ] || echo "ERROR: checksum failure" | |
# Verify PGP signature. This step is optional, and requires gpg. | |
curl -O https://pkgsrc.joyent.com/packages/SmartOS/bootstrap/${BOOTSTRAP_TAR}.asc | |
curl -sS https://pkgsrc.joyent.com/pgp/DE817B8E.asc | gpg --import | |
gpg --verify ${BOOTSTRAP_TAR}{.asc,} | |
# Install bootstrap kit to /opt/local | |
tar -zxpf ${BOOTSTRAP_TAR} -C / | |
# Add to PATH/MANPATH. | |
PATH=/opt/local/sbin:/opt/local/bin:$PATH | |
MANPATH=/opt/local/man:$MANPATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment