How To Install hyperv-tools.noarch on Amazon Linux 2

In this tutorial we learn how to install hyperv-tools.noarch in Amazon Linux 2. hyperv-tools.noarch is Tools for Hyper-V guests

Introduction

In this tutorial we learn how to install hyperv-tools.noarch on Amazon Linux 2.

What is hyperv-tools.noarch

Contains tools and scripts useful for Hyper-V guests.

We can use yum to install hyperv-tools.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install hyperv-tools.noarch.

Install hyperv-tools.noarch on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install hyperv-tools.noarch using yum by running the following command:

sudo yum -y install hyperv-tools.noarch

How To Uninstall hyperv-tools.noarch on Amazon Linux 2

To uninstall only the hyperv-tools.noarch package we can use the following command:

sudo yum remove hyperv-tools.noarch

hyperv-tools.noarch Package Contents on Amazon Linux 2

/usr/sbin/lsvmbus
/usr/share/hyperv-tools
/usr/share/hyperv-tools/bondvf.sh

References

Summary

In this tutorial we learn how to install hyperv-tools.noarch on Amazon Linux 2 using yum.