Install Chef Workstation and its components
Supported platforms
Chef Workstation 26 RC3 and its components are supported on Linux x86-64 systems.
Prerequisites
We use Chef Habitat to distribute and install Chef Workstation and its components. If you haven’t already, you must download and install Chef Habitat. For more information, see the Chef Habitat documentation.
Download and install Chef Habitat:
curl https://raw.githubusercontent.com/habitat-sh/habitat/main/components/hab/install.sh | sudo bash -s -- -c stableVerify Chef Habitat is installed.
hab --version
Install Chef Workstation
To install Chef Workstation, follow these steps:
Install the Chef Workstation Habitat package:
sudo hab pkg install --binlink --force chef/chef-workstation --channel unstableOptional: Verify that Chef Workstation and its tools are installed:
chef-workstation -vChef Workstation returns a list of installed packages and their versions.
Install Chef Workstation tools
Follow these instructions to install a Workstation tool.
Install a package using
hab pkg install:sudo hab pkg install <PACKAGE_IDENT> --channel unstable --binlink --forceReplace
<PACKAGE_IDENT>with the package identifier:chef/berkshelfchef/chef-clichef/chef-infra-clientchef/chef-test-kitchen-enterprisechef/chef-vaultchef/cookstylechef/fauxhaichef/ohai
The
--binlink --forceoptions overwrite any existing package symbolic links in the system’s PATH directory with the new version so you can run it directly in the command line.Verify that the correct version runs:
berks -v chef-cli -v chef-client -v chef-client -v chef-vault <args> cookstyle -v fauxhai -v ohai -v