how to install vagrant on linux

C++
 1) Installation with package manager:
 # to install Vagrant on Debian, Ubuntu, Linux Mint:
 sudo apt install vagrant
 # On Fedora:
 sudo dnf install vagrant
 # On SUSE/openSUSE:
 sudo zypper install vagrant
 
 2) Installation with ".deb" file:
 # If the top solution is now working, download .deb file from 
 # the link below and install it
 link: https://www.vagrantup.com/downloads
 # And then install it with this command
 sudo apt install ./DEB_File.debsudo apt install ./vagrant_2.2.6_x86_64.debcurl -O https://releases.hashicorp.com/vagrant/2.2.6/vagrant_2.2.6_x86_64.deb
Source

Also in C++: