Chef InSpec install guide
Chef InSpec 7 installers are available for Windows, Debian, and RPM-based Linux distributions.
You can download and install pre-built .msi, .deb, or .rpm packages using your existing package management tools.
Supported platforms
Chef InSpec is supported on the following platforms:
- Windows x86-64
- Linux x86-64
Prerequisites
This installation process has the following prerequisites:
Chef InSpec, Chef Automate, and Chef Workstation aren’t installed on the target system.
If Chef InSpec is already installed, see the Chef InSpec uninstall documentation.
On Windows systems,
taris installed.On Debian-based systems, the
dpkgpackage manager is installed.On RPM-based systems,
rpmand eitherdnforyumare installed. For Amazon Linux 2, userpmandyum.You have a valid Progress Chef license key.
The target system is connected to the internet.
Install Chef InSpec
Install Chef InSpec on Debian-based systems
To install Chef InSpec on a Debian-based system, follow these steps:
Download the Debian-based installer using one of the following methods:
Download using
wget:wget -O "inspec-enterprise-<VERSION>-linux.deb" "https://chefdownload-commercial.chef.io/stable/inspec/download?eol=false&license_id=<LICENSE_ID>&m=x86_64&p=linux&pm=deb&v=<VERSION>"Download using
curl:curl -o "inspec-enterprise-<VERSION>-linux.deb" "https://chefdownload-commercial.chef.io/stable/inspec/download?eol=false&license_id=<LICENSE_ID>&m=x86_64&p=linux&pm=deb&v=<VERSION>"
Replace:
<VERSION>with the version number to install.<LICENSE_ID>with your Chef license ID.
Install Chef InSpec:
sudo dpkg -i inspec-enterprise-<VERSION>_amd64.debReplace
<VERSION>with the version number of the downloaded package, for exampleinspec-enterprise-7.1.6-1_amd64.deb.Verify that Chef InSpec is installed:
inspec versionThe output displays the installed Chef InSpec version.
Install Chef InSpec on RPM-based systems
To install Chef InSpec on an RPM-based system, follow these steps:
Download the RPM-based installer using one of the following methods:
Download using
wget:wget -O "inspec-enterprise-<VERSION>-linux.rpm" "https://chefdownload-commercial.chef.io/stable/inspec/download?eol=false&license_id=<LICENSE_ID>&m=x86_64&p=linux&pm=rpm&v=<VERSION>"Download using
curl:curl -o "inspec-enterprise-<VERSION>-linux.rpm" "https://chefdownload-commercial.chef.io/stable/inspec/download?eol=false&license_id=<LICENSE_ID>&m=x86_64&p=linux&pm=rpm&v=<VERSION>"
Replace:
<VERSION>with the version number to install.<LICENSE_ID>with your Chef license ID.
Install Chef InSpec using one of the following methods:
Install using
rpm:sudo rpm -Uvh inspec-enterprise-<VERSION>.x86_64.rpmInstall using
dnf:sudo dnf install ./inspec-enterprise-<VERSION>.x86_64.rpmFor Amazon Linux 2 or systems using
yum:sudo yum install ./inspec-enterprise-<VERSION>.x86_64.rpm
Replace
<VERSION>with the version number of the downloaded package, for exampleinspec-enterprise-7.1.6-1.amzn2.x86_64.rpm.Verify that Chef InSpec is installed:
inspec versionThe output displays the installed Chef InSpec version.
Install Chef InSpec on Windows
To install Chef InSpec on Windows, follow these steps:
Download the installer in an elevated PowerShell session:
Invoke-WebRequest -Uri "https://chefdownload-commercial.chef.io/stable/inspec/download?eol=false&license_id=<LICENSE_ID>&m=x86_64&p=windows&pm=msi&v=<VERSION>" -OutFile "inspec-enterprise-<VERSION>-windows.msi"Install Chef InSpec using one of the following methods:
Run the following command in an elevated PowerShell or Command Prompt session:
msiexec /i inspec-enterprise-<VERSION>-x64.msi /qnReplace
<VERSION>with the version number of the downloaded package, for exampleinspec-enterprise-7.1.6-1_x64.msi.Double-click the
.msifile and follow the on-screen installation wizard.
Verify that Chef InSpec is installed:
inspec versionThe output displays the installed Chef InSpec version.
Upgrade Chef InSpec
To upgrade Chef InSpec to a newer version:
- Uninstall the current version using the steps for your platform.
- Download and install the new version using the steps for your platform using the instruction on this page.