Skip to main content

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:

  1. Remove the package:

    sudo apt-get remove inspec
    
  2. Verify that the package has been removed:

    dpkg -l inspec
    

    The command returns no output if the package is removed successfully.

Uninstall Chef InSpec on RPM-based distributions

To uninstall Chef InSpec, follow these steps:

  1. Remove the package.

    • Using dnf:

      sudo dnf remove inspec
      
    • For Amazon Linux 2 or systems using yum:

      sudo yum remove inspec
      
  2. Verify that the package has been removed:

    rpm -qa inspec
    

    The command returns no output if the package is removed successfully.

Uninstall Chef InSpec on Windows

To uninstall using the Windows UI:

  1. Open Settings > Apps > Installed apps.
  2. Search for Chef InSpec.
  3. 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.

Thank you for your feedback!

×