Problem scenario
You are using a RHEL (RedHat Enterprise Linux) server in AWS. You want to install Vagrant. What do you do?
Solution
Assume the root user by issuing this command: sudo su -
Run these commands:
yum -y install wget
cd /tmp
wget https://releases.hashicorp.com/vagrant/1.8.1/vagrant_1.8.1_x86_64.rpm
yum -y localinstall vagrant_1.8.1_x86_64.rpm
To verify the installation, run this command: vagrant version
Alternative Solution
If you do not want to install wget and curl commands will work for retrieving https locations, you can use this command instead of the wget command above:
curl https://releases.hashicorp.com/vagrant/1.8.1/vagrant_1.8.1_x86_64.rpm > vagrant_1.8.1_x86_64.rpm
# All the other commands besides the wget command will need to be issued. In our experience installing wget is best for CentOS AWS instances. For RHEL instances you will not need to install wget.