How Do You Install “inspec” with gem from the Command Line?

Problem scenario
You want to install the inspec gem. What do you do?

Run this:
gem install inspec
(Taken from )

Does the inspec-bin command work? This may be a newer version that is already installed.

If you installed Ruby with root, which is not recommended according to, you may need to use "sudo" before the gem command. Ideally you would not use "sudo" before a gem command (according to the above external link).

Leave a comment

Your email address will not be published. Required fields are marked *