ocsinventory-agent command not found

In this troubleshooting guide we learn how to fix ocsinventory-agent command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

ocsinventory-agent: command not found

or when using sudo you get the following error message

sudo: ocsinventory-agent: command not found

Solutions to ocsinventory-agent: command not found

How To Fix ocsinventory-agent: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu ocsinventory-agent is provided by ocsinventory-agent package.

ocsinventory-agent is:

Open Computer and Software Inventory Next Generation is an application designed to help a network or system administrator to keep track of the hardware and software configurations of computers that are installed on the network. It also allows deploying software, scripts and files on client computers.

This package contains the client part.

To fix this problem, we can install more using the command below.

sudo apt-get -y install ocsinventory-agent

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install ocsinventory-agent.

sudo apt -y install ocsinventory-agent

Or if you have aptitude installed you can use the following command.

sudo aptitude install ocsinventory-agent

Summary

In this tutorial we learn how to fix ocsinventory-agent command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.