How To Install virtualbox-dkms on Kali Linux
Introduction
In this tutorial we learn how to install virtualbox-dkms
on Kali Linux.
What is virtualbox-dkms
virtualbox-dkms is:
VirtualBox is a free x86 virtualization solution allowing a wide range of x86 operating systems such as Windows, DOS, BSD or Linux to run on a Linux system.
This package provides the source code for the virtualbox kernel module to be build with dkms. Kernel sources or headers are required to compile this module.
There are three methods to install virtualbox-dkms
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 virtualbox-dkms Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install virtualbox-dkms
using apt-get
by running the following command:
sudo apt-get -y install virtualbox-dkms
Install virtualbox-dkms Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install virtualbox-dkms
using apt
by running the following command:
sudo apt -y install virtualbox-dkms
Install virtualbox-dkms 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 update
After updating apt database, We can install virtualbox-dkms
using aptitude
by running the following command:
sudo aptitude -y install virtualbox-dkms
How To Uninstall virtualbox-dkms on Kali Linux
To uninstall only the virtualbox-dkms
package we can use the following command:
sudo apt-get remove virtualbox-dkms
Uninstall virtualbox-dkms And Its Dependencies
To uninstall virtualbox-dkms
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove virtualbox-dkms
Remove virtualbox-dkms Configurations and Data
To remove virtualbox-dkms
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge virtualbox-dkms
Remove virtualbox-dkms configuration, data, and all of its dependencies
We can use the following command to remove virtualbox-dkms
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge virtualbox-dkms
Dependencies
virtualbox-dkms have the following dependencies:
References
Summary
In this tutorial we learn how to install virtualbox-dkms
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.