How To Install open-vm-tools on Ubuntu 20.04

In this tutorial we learn how to install open-vm-tools on Ubuntu 20.04. open-vm-tools is Open VMware Tools for virtual machines hosted on VMware (CLI) Open VMware Tools for virtual machines hosted on VMware (CLI)

Introduction

In this tutorial we learn how to install open-vm-tools on Ubuntu 20.04.

What is open-vm-tools

open-vm-tools 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 contains only the core user-space programs and libraries. Task: server, cloud-image

Package: open-vm-tools Architecture: amd64 Version: 2:11.0.5-4 Priority: extra Section: admin Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Bernd Zeimetz [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 2236 Depends: libc6 (>= 2.28), libdrm2 (>= 2.4.3), libfuse2 (>= 2.6), libgcc-s1 (>= 3.3), libglib2.0-0 (>= 2.31.8), libmspack0 (>= 0.4), libssl1.1 (>= 1.1.0), libudev1 (>= 183), libxml2 (>= 2.7.4), libxmlsec1 (>= 1.2.28), libxmlsec1-openssl (>= 1.2.28), pciutils, iproute2, lsb-release Recommends: ethtool, zerofree, fuse Suggests: open-vm-tools-desktop, cloud-init Breaks: open-vm-tools-desktop (« 2:10.3.5-2~) Replaces: open-vm-tools-desktop (« 2:10.0.7-3227872-2~) Filename: pool/main/o/open-vm-tools/open-vm-tools_11.0.5-4_amd64.deb Size: 546412 MD5sum: 6942b9fc5485212f483e8ce4a0ee9965 SHA1: 71282ab264a1fa318fea38822ccbdfed19a40619 SHA256: 90cac9d8cd8a6292e99313d16d54172c1d62e6e6192d4a26f3067bde1e2c02c7 Homepage: https://github.com/vmware/open-vm-tools Description-en: Open VMware Tools for virtual machines hosted on VMware (CLI) 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 contains only the core user-space programs and libraries. Task: server, cloud-image

There are three methods to install open-vm-tools on Ubuntu 20.04. 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 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 using apt-get by running the following command:

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

Install open-vm-tools Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install open-vm-tools

Install open-vm-tools 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 Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install open-vm-tools

How To Uninstall open-vm-tools on Ubuntu 20.04

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

sudo apt-get remove open-vm-tools

Uninstall open-vm-tools And Its Dependencies

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

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

Remove open-vm-tools Configurations and Data

To remove open-vm-tools configuration and data from Ubuntu 20.04 we can use the following command:

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

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

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

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

References

Summary

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