How To Install ocsinventory-server on Ubuntu 20.04
Introduction
In this tutorial we learn how to install ocsinventory-server
on Ubuntu 20.04.
What is ocsinventory-server
ocsinventory-server 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 ‘Communication Server’ part. Note that this is the XML-RPC/SOAP server, not the web interface (which is provided in the ocsinventory-reports package).
There are three methods to install ocsinventory-server
on Ubuntu 20.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-server 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-server
using apt-get
by running the following command:
sudo apt-get -y install ocsinventory-server
Install ocsinventory-server Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install ocsinventory-server
using apt
by running the following command:
sudo apt -y install ocsinventory-server
Install ocsinventory-server 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-server
using aptitude
by running the following command:
sudo aptitude -y install ocsinventory-server
How To Uninstall ocsinventory-server on Ubuntu 20.04
To uninstall only the ocsinventory-server
package we can use the following command:
sudo apt-get remove ocsinventory-server
Uninstall ocsinventory-server And Its Dependencies
To uninstall ocsinventory-server
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove ocsinventory-server
Remove ocsinventory-server Configurations and Data
To remove ocsinventory-server
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge ocsinventory-server
Remove ocsinventory-server configuration, data, and all of its dependencies
We can use the following command to remove ocsinventory-server
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge ocsinventory-server
References
Summary
In this tutorial we learn how to install ocsinventory-server
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.