How To Install python-openwsman on Ubuntu 18.04

In this tutorial we learn how to install python-openwsman on Ubuntu 18.04. python-openwsman is Open Web Services Manager Python bindings

Introduction

In this tutorial we learn how to install python-openwsman on Ubuntu 18.04.

What is python-openwsman

python-openwsman is:

Openwsman is a project intended to provide an open-source implementation of the Web Services Management specification (WS-Management) and to expose system management information on the Linux operating system using the WS-Management protocol. WS-Management is based on a suite of web services specifications and usage requirements that exposes a set of operations focused on and covers all system management aspects.

This package provides the Python bindings for the Openwsman client API.

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

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

sudo apt-get update

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

sudo apt-get -y install python-openwsman

Install python-openwsman Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-openwsman

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

sudo aptitude -y install python-openwsman

How To Uninstall python-openwsman on Ubuntu 18.04

To uninstall only the python-openwsman package we can use the following command:

sudo apt-get remove python-openwsman

Uninstall python-openwsman And Its Dependencies

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

sudo apt-get -y autoremove python-openwsman

Remove python-openwsman Configurations and Data

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

sudo apt-get -y purge python-openwsman

Remove python-openwsman configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge python-openwsman

References

Summary

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