本章介绍如何在 Linux 中安装 Vagrant
Ubuntu
1 | $ sudo apt update -y && sudo apt install vagrant |
CentOS
首先从地址 https://releases.hashicorp.com/vagrant 中查找你需要的版本,比如
1 | https://releases.hashicorp.com/vagrant/2.1.2/vagrant_2.1.2_x86_64.rpm |
安装
1 | $ sudo yum install -y https://releases.hashicorp.com/vagrant/2.1.2/vagrant_2.1.2_x86_64.rpm |