How To Install vagrant on Kali Linux
Introduction
In this tutorial we learn how to install vagrant on Kali Linux.
What is vagrant
vagrant is:
This package provides the tools to create and configure lightweight, reproducible, and portable virtual environments.
Vagrant upstream uses Oracle??s VirtualBox by default to create its virtual machines. On Debian, Vagrant will use libvirt/KVM by default as VirtualBox is not part of Debian main, but will use VirtualBox if it’s installed.
There are three methods to install vagrant on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install vagrant Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install vagrant using apt-get by running the following command:
sudo apt-get -y install vagrantInstall vagrant Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install vagrant using apt by running the following command:
sudo apt -y install vagrantInstall vagrant Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.
sudo aptitude updateAfter updating apt database, We can install vagrant using aptitude by running the following command:
sudo aptitude -y install vagrantHow To Uninstall vagrant on Kali Linux
To uninstall only the vagrant package we can use the following command:
sudo apt-get remove vagrantUninstall vagrant And Its Dependencies
To uninstall vagrant and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove vagrantRemove vagrant Configurations and Data
To remove vagrant configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge vagrantRemove vagrant configuration, data, and all of its dependencies
We can use the following command to remove vagrant configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge vagrantDependencies
vagrant have the following dependencies:
- libarchive-tools
- curl
- openssh-client
- rsync
- ruby
- ruby-bcrypt-pbkdf
- ruby-childprocess
- ruby-ed25519
- ruby-erubi
- ruby-i18n
- ruby-listen
- ruby-log4r
- ruby-mime-types
- ruby-net-ssh
- ruby-net-sftp
- ruby-net-scp
- ruby-zip
- ruby-vagrant-cloud
References
Summary
In this tutorial we learn how to install vagrant package on Kali Linux using different package management tools: apt, apt-get and aptitude.