How To Install sblim-wbemcli on Ubuntu 18.04

In this tutorial we learn how to install sblim-wbemcli on Ubuntu 18.04. sblim-wbemcli is WBEM Command Line Interface for CIMOM access

Introduction

In this tutorial we learn how to install sblim-wbemcli on Ubuntu 18.04.

What is sblim-wbemcli

sblim-wbemcli is:

The WBEM Command Line Interface is a standalone, convenient systems management utility for CIMOM access. Invocation and output syntax are problem-oriented and easy to process by shell and Perl scripts, making wbemcli well suited for administrators writing their own management scripts and for WBEM developers wanting to test their providers.

WBEM (Web-Based Enterprise Management) is a successor of SNMP and the basis of SMI-S (Storage Management Initiative - a standard interface to storage devices). CIM (Common Information Model, the data model of WBEM) has a much wider scope, thus more ambitious projects like OpenPegasus exist, but this simple utility from the SBLIM project is enough to query disk and RAID states of SMI-S compatible storage products from their CIM Object Manager, for example.

There are three methods to install sblim-wbemcli 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 sblim-wbemcli Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install sblim-wbemcli

Install sblim-wbemcli Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install sblim-wbemcli

Install sblim-wbemcli 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 sblim-wbemcli using aptitude by running the following command:

sudo aptitude -y install sblim-wbemcli

How To Uninstall sblim-wbemcli on Ubuntu 18.04

To uninstall only the sblim-wbemcli package we can use the following command:

sudo apt-get remove sblim-wbemcli

Uninstall sblim-wbemcli And Its Dependencies

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

sudo apt-get -y autoremove sblim-wbemcli

Remove sblim-wbemcli Configurations and Data

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

sudo apt-get -y purge sblim-wbemcli

Remove sblim-wbemcli configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge sblim-wbemcli

References

Summary

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