PACKAGE SET
Choose a known base.
Enterprise Linux 7.x: CentOS, Oracle, Red Hat, and Scientific Linux compatible systems.
Important. Bootstrap kits are for a fresh pkgsrc installation. If pkgsrc is already installed, use the matching upgrade kit or pkgin upgrade instead of unpacking a bootstrap over it.
01
Enterprise Linux 7.x
x86_64 package set.
Install
BOOTSTRAP_TAR="bootstrap-el7-trunk-x86_64-20220718.tar.gz"
BOOTSTRAP_SHA="7ecea7fd3b49259aa7318d8cd72901966ad5329f"
# Download the bootstrap kit to the current directory.
curl -O https://pkgsrc.smartos.org/packages/Linux/bootstrap/${BOOTSTRAP_TAR}
# Verify the SHA1 checksum before unpacking.
echo "${BOOTSTRAP_SHA} ${BOOTSTRAP_TAR}" >check-shasum
sha1sum -c check-shasum || exit 1
# Optional: verify the PGP signature (requires gpg).
# curl -O https://pkgsrc.smartos.org/packages/Linux/bootstrap/${BOOTSTRAP_TAR}.asc
# curl -sS https://pkgsrc.smartos.org/pgp/5FE35E6E.asc | gpg2 --import
# gpg2 --verify ${BOOTSTRAP_TAR}{.asc,}
# Unpack the kit to /usr/pkg.
sudo tar -zxpf ${BOOTSTRAP_TAR} -C /
# Add pkgsrc tools to this shell.
PATH=/usr/pkg/sbin:/usr/pkg/bin:$PATH
MANPATH=/usr/pkg/man:$MANPATHUpgrade this package set
Use an upgrade kit only when package configuration or signing keys need to change. For normal maintenance, run pkgin upgrade.
UPGRADE_TAR="bootstrap-el7-trunk-x86_64-20220718-upgrade.tar.gz"
UPGRADE_SHA="e7c364c002ddf85ebda416644aa0309588be4e9e"
# Download the upgrade kit to the current directory.
curl -O https://pkgsrc.smartos.org/packages/Linux/bootstrap-upgrade/${UPGRADE_TAR}
# Verify the SHA1 checksum before unpacking.
echo "${UPGRADE_SHA} ${UPGRADE_TAR}" >check-shasum
sha1sum -c check-shasum || exit 1
# Optional: verify the PGP signature (requires gpg).
# curl -O https://pkgsrc.smartos.org/packages/Linux/bootstrap-upgrade/${UPGRADE_TAR}.asc
# curl -sS https://pkgsrc.smartos.org/pgp/5FE35E6E.asc | gpg2 --import
# gpg2 --verify ${UPGRADE_TAR}{.asc,}
# Unpack the kit to /usr/pkg.
sudo tar -zxpf ${UPGRADE_TAR} -C /
# Ensure package tools and installed packages are current.
sudo /usr/pkg/sbin/pkg_add -U pkg_install pkgin libarchive
sudo /usr/pkg/bin/pkgin clean
sudo /usr/pkg/bin/pkgin -y upgradePOST-INSTALL
Operate with pkgin.
pkgin is the binary package front end. The underlying pkg_add, pkg_info, pkg_create, and pkg_admin tools remain available when you need them.
# Elevated commands use explicit pkgsrc paths so sudo cannot reset them.
# Refresh repository metadata
sudo /usr/pkg/bin/pkgin -y update
# Find, install, and upgrade packages
/usr/pkg/bin/pkgin search ^ffmpeg[0-9]$
sudo /usr/pkg/bin/pkgin -y install ffmpeg4
/usr/pkg/bin/pkgin avail
sudo /usr/pkg/bin/pkgin -y upgrade
sudo /usr/pkg/bin/pkgin -y remove ffmpeg4
sudo /usr/pkg/bin/pkgin -y autoremove
# Inspect installed package metadata and files
/usr/pkg/sbin/pkg_info
/usr/pkg/sbin/pkg_info -Fe /usr/pkg/bin/ffmpeg4
/usr/pkg/sbin/pkg_info -qL ffmpeg4
# Refresh the vulnerability list and audit installed packages
sudo /usr/pkg/sbin/pkg_admin fetch-pkg-vulnerabilities
/usr/pkg/sbin/pkg_admin audit