How To Install fusioninventory-agent-yum-plugin on CentOS 7

In this tutorial we learn how to install fusioninventory-agent-yum-plugin on CentOS 7. fusioninventory-agent-yum-plugin is Ask FusionInventory agent to send an inventory when yum exits

Introduction

In this tutorial we learn how to install fusioninventory-agent-yum-plugin on CentOS 7.

What is fusioninventory-agent-yum-plugin

fusioninventory-agent-yum-plugin asks the running service agent to send an inventory when yum exits. This requires the service to be running with the –rpc-trust-localhost option.

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

Install fusioninventory-agent-yum-plugin on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install fusioninventory-agent-yum-plugin using yum by running the following command:

sudo yum -y install fusioninventory-agent-yum-plugin

Install fusioninventory-agent-yum-plugin 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 fusioninventory-agent-yum-plugin using dnf by running the following command:

sudo dnf -y install fusioninventory-agent-yum-plugin

How To Uninstall fusioninventory-agent-yum-plugin on CentOS 7

To uninstall only the fusioninventory-agent-yum-plugin package we can use the following command:

sudo dnf remove fusioninventory-agent-yum-plugin

References

Summary

In this tutorial we learn how to install fusioninventory-agent-yum-plugin on CentOS 7 using yum and dnf.