How To Install python-congressclient on Ubuntu 18.04

In this tutorial we learn how to install python-congressclient on Ubuntu 18.04. python-congressclient is client for the open policy framework for the cloud - Python 2.x

Introduction

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

What is python-congressclient

python-congressclient is:

Congress is an open policy framework for the cloud. With Congress, a cloud operator can declare, monitor, enforce, and audit “policy” in a heterogeneous cloud environment. Congress get inputs from a cloud’s various cloud services; for example in Openstack, Congress fetches information about VMs from Nova, and network state from Neutron, etc. Congress then feeds input data from those services into its policy engine where Congress verifies that the cloud’s actual state abides by the cloud operator’s policies. Congress is designed to work with any policy and any cloud service.

This package provides a cli and a Python 2.x client module.

There are three methods to install python-congressclient 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-congressclient 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-congressclient using apt-get by running the following command:

sudo apt-get -y install python-congressclient

Install python-congressclient Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-congressclient

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

sudo aptitude -y install python-congressclient

How To Uninstall python-congressclient on Ubuntu 18.04

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

sudo apt-get remove python-congressclient

Uninstall python-congressclient And Its Dependencies

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

sudo apt-get -y autoremove python-congressclient

Remove python-congressclient Configurations and Data

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

sudo apt-get -y purge python-congressclient

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

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

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

References

Summary

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