How To Install open-vm-tools-dkms on Debian 9

In this tutorial we learn how to install open-vm-tools-dkms on Debian 9. open-vm-tools-dkms is Open VMware Tools vmxnet kernel module (deprecated)

Introduction

In this tutorial we learn how to install open-vm-tools-dkms on Debian 9.

What is open-vm-tools-dkms

open-vm-tools-dkms is:

The Open Virtual Machine Tools (open-vm-tools) project is an open source implementation of VMware Tools. It is a suite of virtualization utilities and drivers to improve the functionality, user experience and administration of VMware virtual machines.

This package provides the source code for the vmxnet module, which was superseded by vmxnet3. You should only install this package if you know that you need the legacy vnxnet module. Kernel source or headers are required to compile it using DKMS.

There are three methods to install open-vm-tools-dkms on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install open-vm-tools-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 open-vm-tools-dkms using apt-get by running the following command:

sudo apt-get -y install open-vm-tools-dkms

Install open-vm-tools-dkms Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install open-vm-tools-dkms using apt by running the following command:

sudo apt -y install open-vm-tools-dkms

Install open-vm-tools-dkms Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install open-vm-tools-dkms using aptitude by running the following command:

sudo aptitude -y install open-vm-tools-dkms

How To Uninstall open-vm-tools-dkms on Debian 9

To uninstall only the open-vm-tools-dkms package we can use the following command:

sudo apt-get remove open-vm-tools-dkms

Uninstall open-vm-tools-dkms And Its Dependencies

To uninstall open-vm-tools-dkms and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove open-vm-tools-dkms

Remove open-vm-tools-dkms Configurations and Data

To remove open-vm-tools-dkms configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge open-vm-tools-dkms

Remove open-vm-tools-dkms configuration, data, and all of its dependencies

We can use the following command to remove open-vm-tools-dkms configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge open-vm-tools-dkms

Dependencies

open-vm-tools-dkms have the following dependencies:

References

Summary

In this tutorial we learn how to install open-vm-tools-dkms package on Debian 9 using different package management tools: apt, apt-get and aptitude.