How To Install WALinuxAgent on CentOS 7

In this tutorial we learn how to install WALinuxAgent on CentOS 7. WALinuxAgent is Microsoft Azure Linux Agent

Introduction

In this tutorial we learn how to install WALinuxAgent on CentOS 7.

What is WALinuxAgent

The Azure Linux Agent supports the provisioning and running of Linux VMs in the Azure cloud. This package should be installed on Linux disk images that are built to run in the Azure environment.

We can use yum or dnf to install WALinuxAgent on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install WALinuxAgent.

Install WALinuxAgent on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install WALinuxAgent using yum by running the following command:

sudo yum -y install WALinuxAgent

Install WALinuxAgent on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install WALinuxAgent using dnf by running the following command:

sudo dnf -y install WALinuxAgent

How To Uninstall WALinuxAgent on CentOS 7

To uninstall only the WALinuxAgent package we can use the following command:

sudo dnf remove WALinuxAgent

References

Summary

In this tutorial we learn how to install WALinuxAgent on CentOS 7 using yum and dnf.