Skip to content

Instantly share code, notes, and snippets.

@mykelalvis
Created April 24, 2018 19:35
Show Gist options
  • Save mykelalvis/fbc3dd759d9f37f59d2572ad594c5df2 to your computer and use it in GitHub Desktop.
Save mykelalvis/fbc3dd759d9f37f59d2572ad594c5df2 to your computer and use it in GitHub Desktop.
Install inspec on clean Amazon Linux2
#!/bin/sh
sudo yum install -y gcc openssl-devel libyaml-devel libffi-devel readline-devel zlib-devel gdbm-devel ncurses-devel ruby-devel gcc-c++ jq git patch
curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
curl -sSL https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
rvm autolibs 3
rvm install 2.4.1
gem install inspec
inspec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment