How To Install python3-oslo.versionedobjects on Ubuntu 18.04

In this tutorial we learn how to install python3-oslo.versionedobjects on Ubuntu 18.04. python3-oslo.versionedobjects is deals with DB schema versions and code expectations - Python 3.x

Introduction

In this tutorial we learn how to install python3-oslo.versionedobjects on Ubuntu 18.04.

What is python3-oslo.versionedobjects

python3-oslo.versionedobjects is:

oslo.versionedobjects library deals with DB schema being at different versions than the code expects, allowing services to be operated safely during upgrades. It enables DB independent schema by providing an abstraction layer, which allows one to support SQL and NoSQL Databases. oslo.versionedobjects is also used in RPC APIs, to ensure upgrades happen without spreading version dependent code across different services and projects.

This package contains the Python 3.x module.

There are three methods to install python3-oslo.versionedobjects 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 python3-oslo.versionedobjects Using apt-get

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

sudo apt-get update

After updating apt database, We can install python3-oslo.versionedobjects using apt-get by running the following command:

sudo apt-get -y install python3-oslo.versionedobjects

Install python3-oslo.versionedobjects Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install python3-oslo.versionedobjects using apt by running the following command:

sudo apt -y install python3-oslo.versionedobjects

Install python3-oslo.versionedobjects 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 python3-oslo.versionedobjects using aptitude by running the following command:

sudo aptitude -y install python3-oslo.versionedobjects

How To Uninstall python3-oslo.versionedobjects on Ubuntu 18.04

To uninstall only the python3-oslo.versionedobjects package we can use the following command:

sudo apt-get remove python3-oslo.versionedobjects

Uninstall python3-oslo.versionedobjects And Its Dependencies

To uninstall python3-oslo.versionedobjects and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove python3-oslo.versionedobjects

Remove python3-oslo.versionedobjects Configurations and Data

To remove python3-oslo.versionedobjects configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge python3-oslo.versionedobjects

Remove python3-oslo.versionedobjects configuration, data, and all of its dependencies

We can use the following command to remove python3-oslo.versionedobjects configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge python3-oslo.versionedobjects

References

Summary

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