How To Install python3-os-brick on Ubuntu 20.04

In this tutorial we learn how to install python3-os-brick on Ubuntu 20.04. python3-os-brick is Library for managing local volume attaches - Python 3.x Library for managing local volume attaches - Python 3.x Library for managing local volume attaches - Python 3.x

Introduction

In this tutorial we learn how to install python3-os-brick on Ubuntu 20.04.

What is python3-os-brick

python3-os-brick is:

OpenStack Cinder brick library for managing local volume attaches.

Features discovery of volumes being attached to a host for many transport protocols and removal of volumes from a host.

This package contains the Python 3.x module.

Package: python3-os-brick Architecture: all Version: 3.0.1-0ubuntu1.2 Priority: optional Section: python Source: python-os-brick Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian OpenStack [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 965 Depends: open-iscsi, os-brick-common (= 3.0.1-0ubuntu1.2), python3-babel (>= 2.3.4), python3-eventlet (>= 0.18.2), python3-os-win (>= 3.0.0), python3-oslo.concurrency (>= 3.26.0), python3-oslo.i18n (>= 3.15.3), python3-oslo.log (>= 3.36.0), python3-oslo.privsep (>= 1.32.0), python3-oslo.service (>= 1.24.0), python3-oslo.utils (>= 3.33.0), python3-pbr (>= 2.0.0), python3-requests (>= 2.14.2), python3-retrying (>= 1.2.3), python3-six (>= 1.10.0), python3:any Suggests: python-os-brick-doc Filename: pool/main/p/python-os-brick/python3-os-brick_3.0.1-0ubuntu1.2_all.deb Size: 125040 MD5sum: b96516c3ee08a48785544a94bf2df0bb SHA1: 4fbdc19ccec55e290937f715276d8f19bdd7fbdb SHA256: ac3962c13d742a403673212cc1d38af86f25722db191e2c630c8881c2fea8197 SHA512: 2642af3481aea288bc82f7a06be3de036b7db9705787f4f1e7c43006b8d18a9e8581fbd39b6444e11cc73062684734501717ed6c2d0c59f2e6aac19096ea7e2c Homepage: https://github.com/openstack/os-brick Description-en: Library for managing local volume attaches - Python 3.x OpenStack Cinder brick library for managing local volume attaches.

Features discovery of volumes being attached to a host for many transport protocols and removal of volumes from a host.

This package contains the Python 3.x module.

Package: python3-os-brick Architecture: all Version: 3.0.1-0ubuntu1 Priority: optional Section: python Source: python-os-brick Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian OpenStack [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 961 Depends: open-iscsi, os-brick-common (= 3.0.1-0ubuntu1), python3-babel (>= 2.3.4), python3-eventlet (>= 0.18.2), python3-os-win (>= 3.0.0), python3-oslo.concurrency (>= 3.26.0), python3-oslo.i18n (>= 3.15.3), python3-oslo.log (>= 3.36.0), python3-oslo.privsep (>= 1.32.0), python3-oslo.service (>= 1.24.0), python3-oslo.utils (>= 3.33.0), python3-pbr (>= 2.0.0), python3-requests (>= 2.14.2), python3-retrying (>= 1.2.3), python3-six (>= 1.10.0), python3:any Suggests: python-os-brick-doc Filename: pool/main/p/python-os-brick/python3-os-brick_3.0.1-0ubuntu1_all.deb Size: 124672 MD5sum: fbbedcf1f6de2ed13bb8d5173f761cba SHA1: 7405ffb0579fe56dd6f0357896a4262c4e128fa6 SHA256: dc72ca124cf43532e0ccd0233560b5b6dfd3efa65a8d65ab1622c2a510e0c711 Homepage: https://github.com/openstack/os-brick Description-en: Library for managing local volume attaches - Python 3.x OpenStack Cinder brick library for managing local volume attaches.

Features discovery of volumes being attached to a host for many transport protocols and removal of volumes from a host.

This package contains the Python 3.x module.

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

sudo apt-get -y install python3-os-brick

Install python3-os-brick Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install python3-os-brick using apt by running the following command:

sudo apt -y install python3-os-brick

Install python3-os-brick 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-os-brick using aptitude by running the following command:

sudo aptitude -y install python3-os-brick

How To Uninstall python3-os-brick on Ubuntu 20.04

To uninstall only the python3-os-brick package we can use the following command:

sudo apt-get remove python3-os-brick

Uninstall python3-os-brick And Its Dependencies

To uninstall python3-os-brick and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove python3-os-brick

Remove python3-os-brick Configurations and Data

To remove python3-os-brick configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge python3-os-brick

Remove python3-os-brick configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge python3-os-brick

References

Summary

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