How To Install ocsinventory-reports on Ubuntu 18.04

In this tutorial we learn how to install ocsinventory-reports on Ubuntu 18.04. ocsinventory-reports is Hardware and software inventory tool (Administration Console)

Introduction

In this tutorial we learn how to install ocsinventory-reports on Ubuntu 18.04.

What is ocsinventory-reports

ocsinventory-reports is:

Open Computer and Software Inventory Next Generation is an application designed to help a network or system administrator keep track of the computers configuration and software that are installed on the network.

Information about Hardware and Operating System are collected. OCS Inventory is also able to detect all active devices on your network, such as switch, router, network printer and unattended devices. It also allows deploying software, commands or files on client computers.

This package contains the ‘Administration Console’ part.

There are three methods to install ocsinventory-reports on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install ocsinventory-reports Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install ocsinventory-reports using apt-get by running the following command:

sudo apt-get -y install ocsinventory-reports

Install ocsinventory-reports Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install ocsinventory-reports

Install ocsinventory-reports Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install ocsinventory-reports using aptitude by running the following command:

sudo aptitude -y install ocsinventory-reports

How To Uninstall ocsinventory-reports on Ubuntu 18.04

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

sudo apt-get remove ocsinventory-reports

Uninstall ocsinventory-reports And Its Dependencies

To uninstall ocsinventory-reports and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove ocsinventory-reports

Remove ocsinventory-reports Configurations and Data

To remove ocsinventory-reports configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge ocsinventory-reports

Remove ocsinventory-reports configuration, data, and all of its dependencies

We can use the following command to remove ocsinventory-reports configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge ocsinventory-reports

References

Summary

In this tutorial we learn how to install ocsinventory-reports package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.