Chef Software Packages
You can install packages for Chef Software products using platform-native package repositories.
Release channels
Chef releases packages from the following release channels:
| Channel | Description |
|---|---|
stable | A build from this channel is an “official” release that has passed full user acceptance testing. Artifacts in this channel are retained indefinitely. |
current | A build from this channel is an “integration” build that has passed full testing, but hasn’t been officially released. Artifacts in this channel are retained for 30 days and then removed automatically. |
Use the stable channel when installing Chef products on production systems.
Package repositories
The stable and current release channels support the following package repositories:
- APT (Debian and Ubuntu platforms)
- Yum (Enterprise Linux platforms)
You can download Chef Software’s GPG public key from packages.chef.io.
Debian / Ubuntu
To set up an APT package repository for Debian and Ubuntu platforms:
Enable APT to fetch packages over HTTPS:
sudo apt-get install apt-transport-httpsInstall the public key for Chef Software:
wget -qO - https://packages.chef.io/chef.asc | sudo apt-key add -Create the APT repository source file:
echo "deb https://packages.chef.io/repos/apt/<CHANNEL> <DISTRIBUTION> main" > chef-<CHANNEL>.listReplace:
<CHANNEL>with the release channel:stableorcurrent.<DISTRIBUTION>with the appropriate distribution name. For example:- for Debian 9:
stretch - for Debian 10:
buster - for Debian 11:
bullseye - for Ubuntu 18.04:
bionic - for Ubuntu 20.04:
focal
- for Debian 9:
Update the package repository list:
sudo mv chef-stable.list /etc/apt/sources.list.d/Update the cache for the package repository:
sudo apt-get update
Enterprise Linux
Note
Before you begin, verify that you have the yum-utils package installed.
To set up a Yum package repository for Enterprise Linux platforms, follow these steps:
Install the public key for Chef Software:
sudo rpm --import https://packages.chef.io/chef.ascCreate the Yum repository source file:
cat >chef-<CHANNEL>.repo <<EOL [chef-<CHANNEL>] name=chef-<CHANNEL> baseurl=https://packages.chef.io/repos/yum/<CHANNEL>/el/<VERSION>/\$basearch/ gpgcheck=1 # No auto-upgrade, as there are manual steps needed for Chef Infra Server upgrades enabled=0 EOLReplace:
<CHANNEL>with the release channel:stableorcurrent.<VERSION>with the Enterprise Linux version.
Update the package repository list:
sudo yum-config-manager --add-repo chef-stable.repo