Uninstall Chef InSpec
Uninstall Habitat-based Chef InSpec
If you installed Chef InSpec as a Habitat package, use the hab pkg uninstall command:
sudo hab pkg uninstall chef/inspec
Uninstall Chef InSpec on Debian-based distributions
To uninstall Chef InSpec, follow these steps:
Remove the package:
sudo apt-get remove inspecVerify that the package has been removed:
dpkg -l inspecThe command returns no output if the package is removed successfully.
Uninstall Chef InSpec on RPM-based distributions
To uninstall Chef InSpec, follow these steps:
Remove the package.
Using
dnf:sudo dnf remove inspecFor Amazon Linux 2 or systems using
yum:sudo yum remove inspec
Verify that the package has been removed:
rpm -qa inspecThe command returns no output if the package is removed successfully.
Uninstall Chef InSpec on Windows
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-enterprise-<VERSION>-x64.msi /qn
Replace <VERSION> with the version number of the currently installed package.