Install Chef Workstation and its components
System requirements
Chef Workstation 26 RC3 has the following requirements:
- Linux x86-64 (64-bit) systems only
- Chef Habitat 1.6.0 or later installed
- Minimum 2GB available disk space for installation
- Internet connectivity for package downloads (or access to internal Habitat Builder)
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 unstable--binlink: Creates symbolic links in/binfor all included tools, making them accessible system-wide--force: Overwrites any existing binlinks from previous installations--channel unstable: Specifies the unstable channel where RC3 releases are published
The installation process downloads the package and all dependencies, creates necessary binlinks, and configures the environment. This may take several minutes depending on your network connection.
Optional: Verify that Chef Workstation and its tools are installed:
chef-workstation -vChef Workstation returns a list of installed packages and their versions.
Optional: You can also verify each individual tool:
chef-cli --version knife --version kitchen --version berks --version cookstyle --version ohai --version chef-vault --version inspec --version
Install Chef Workstation tools
The following applications are included with Chef Workstation, but they can be installed as standalone applications.
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/inspecchef/knifechef/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 knife -v ohai -v
Troubleshooting
Binlinks not found
If commands aren’t found after installation, verify that Chef Habitat created the binlinks:
ls -la /bin | grep chef
If binlinks are missing, recreate them:
sudo hab pkg binlink --force chef/chef-workstation
Permission errors
Ensure you’re running installation commands with sudo for system-wide access.
Habitat channel issues
If the package can’t be found, verify channel availability:
hab pkg search chef/chef-workstation --channel unstable