How To Install ocsinventory-agent on Fedora 36

In this tutorial we learn how to install ocsinventory-agent in Fedora 36. ocsinventory-agent is Open Computer and Software Inventory Next Generation client

Introduction

In this tutorial we learn how to install ocsinventory-agent on Fedora 36.

What is ocsinventory-agent

Open Computer and Software Inventory Next Generation is an application designed to help a network or system administrator keep track of computer configuration and software installed on the network. It also allows deploying software, commands or files on Windows and Linux client computers. ocsinventory-agent provides the client for Linux (Unified Unix Agent).

We can use yum or dnf to install ocsinventory-agent on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ocsinventory-agent.

Install ocsinventory-agent on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install ocsinventory-agent

Install ocsinventory-agent on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install ocsinventory-agent

How To Uninstall ocsinventory-agent on Fedora 36

To uninstall only the ocsinventory-agent package we can use the following command:

sudo dnf remove ocsinventory-agent

ocsinventory-agent Package Contents on Fedora 36

/etc/logrotate.d/ocsinventory-agent
/etc/sysconfig/ocsinventory-agent
/usr/lib/systemd/system/ocsinventory-agent-daily.timer
/usr/lib/systemd/system/ocsinventory-agent-hourly.timer
/usr/lib/systemd/system/ocsinventory-agent-onboot.timer
/usr/lib/systemd/system/ocsinventory-agent.service
/usr/libexec/ocsinventory-agent
/usr/libexec/ocsinventory-agent/ocsinventory-agent.cron
/usr/sbin/ocsinventory-agent
/usr/share/man/man1/ocsinventory-agent.1.gz
/var/log/ocsinventory-agent

References

Summary

In this tutorial we learn how to install ocsinventory-agent on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).