+++ title = "Install Chef InSpec with a native installer" draft = false
[menu.install] title = "Install with native installer" identifier = "install/installer" parent = "install" weight = 20 +++
The Chef InSpec native installers provide an efficient way to install Chef InSpec 7 on Windows, Debian, or RPM-based Linux distributions.
You can download and install the pre-built .msi, .deb, or .rpm packages using your existing package management tools, simplifying the deployment process for compliance automation.
Chef InSpec is supported on the following platforms:
- Windows x86-64
- Linux x86-64
This installation process has the following prerequisites:
-
Chef Automate isn't installed on the target system.
-
Chef Workstation isn't installed on the target system.
-
On Windows systems,
taris installed on the target system. -
On Debian-based systems, the
dpkgpackage manager is installed on the target system. -
On RPM-based systems, the
rpmand either thednforyumpackage managers are installed on the target system.For Amazon Linux 2, use the
rpmandyumpackage managers. -
You have a valid Progress Chef license key.
-
The target system is connected to the internet.
If an older version of Chef InSpec is already installed, uninstall it before installing a newer version to avoid package conflicts.
sudo apt-get remove inspecVerify that the package has been removed:
dpkg -l inspecThe command returns no output if the package is removed successfully.
Using dnf:
sudo dnf remove inspecFor Amazon Linux 2 or systems using yum:
sudo yum remove inspecVerify that the package has been removed:
rpm -qa inspecThe command returns no output if the package is removed successfully.
To uninstall using the Windows UI:
- Open Settings > Apps > Installed apps.
- Search for Chef InSpec.
- Select Uninstall, then follow the on-screen prompts.
To uninstall from the command line, run the following command in an elevated PowerShell or Command Prompt session:
msiexec /x inspec-ie-<version>-x64.msi /qnReplace <version> with the version number of the currently installed package.
To install Chef InSpec, follow these steps:
Download the installer package from the Chef downloads page. Select Chef InSpec, then choose the target platform and version.
To download programmatically, use the following commands.
Replace <VERSION> with the version number to install and <LICENSE_ID> with your Chef license ID.
Using wget:
wget -O "inspec-ie-<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>"Using curl:
curl -o "inspec-ie-<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>"Using wget:
wget -O "inspec-ie-<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>"Using curl:
curl -o "inspec-ie-<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>"Run the following command 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-ie-<VERSION>-windows.msi"Navigate to the directory containing the downloaded installer and run the appropriate install command for your platform.
sudo dpkg -i inspec-ie-<version>_amd64.debReplace <version> with the version number of the downloaded package, for example:
sudo dpkg -i inspec-ie-7.6.0-1_amd64.debUsing rpm:
sudo rpm -Uvh inspec-ie-<version>.x86_64.rpmUsing dnf:
sudo dnf install ./inspec-ie-<version>.x86_64.rpmFor Amazon Linux 2 or systems using yum:
sudo yum install ./inspec-ie-<version>.x86_64.rpmReplace <version> with the version number of the downloaded package, for example inspec-ie-7.6.0-1.el8.x86_64.rpm.
Run the following command in an elevated PowerShell or Command Prompt session:
msiexec /i inspec-ie-<version>-x64.msi /qnReplace <version> with the version number of the downloaded package, for example inspec-ie-7.6.0-x64.msi.
Alternatively, double-click the .msi file and follow the on-screen installation wizard.
inspec versionThe output displays the installed version of Chef InSpec, for example:
7.6.0To 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.
To remove Chef InSpec from your system, follow the steps in Uninstall an older version of Chef InSpec.