How To Install librbd1 on Ubuntu 20.04

In this tutorial we learn how to install librbd1 on Ubuntu 20.04. librbd1 is RADOS block device client library RADOS block device client library RADOS block device client library

Introduction

In this tutorial we learn how to install librbd1 on Ubuntu 20.04.

What is librbd1

librbd1 is:

RBD is a block device striped across multiple distributed objects in RADOS, a reliable, autonomic distributed object storage cluster developed as part of the Ceph distributed storage system. This is a shared library allowing applications to manage these block devices.

Package: librbd1 Architecture: amd64 Version: 15.2.12-0ubuntu0.20.04.1 Priority: optional Section: libs Source: ceph Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Ceph Packaging Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 5676 Depends: librados2 (= 15.2.12-0ubuntu0.20.04.1), libc6 (>= 2.28), libgcc-s1 (>= 3.0), libstdc++6 (>= 9) Filename: pool/main/c/ceph/librbd1_15.2.12-0ubuntu0.20.04.1_amd64.deb Size: 1619484 MD5sum: 2a08e1d4d008e8c07134b6b83a6e7930 SHA1: 9cf8a96adce96e6fe0d227ce779242105f140047 SHA256: 7400341a67e3120481e3a86a3946e7d266b27313d1dda74623d724f32ea79774 SHA512: 0cf9c5f429dc47ed36374209ef225da85599a78722c28cc1c8cd6c730dc6b6268f123bde0dd2bfa66417eeef52af3c3117a46d0db1f6ffe5eefe7151d72be9ba Homepage: http://ceph.com/ Description-en: RADOS block device client library RBD is a block device striped across multiple distributed objects in RADOS, a reliable, autonomic distributed object storage cluster developed as part of the Ceph distributed storage system. This is a shared library allowing applications to manage these block devices.

Package: librbd1 Architecture: amd64 Version: 15.2.1-0ubuntu1 Priority: optional Section: libs Source: ceph Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Ceph Packaging Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 5646 Depends: librados2 (= 15.2.1-0ubuntu1), libc6 (>= 2.28), libgcc-s1 (>= 3.0), libstdc++6 (>= 9) Filename: pool/main/c/ceph/librbd1_15.2.1-0ubuntu1_amd64.deb Size: 1609772 MD5sum: 872f21cd3495d61f7c30f02e1ae07990 SHA1: 7057d24f10bef58b2b7f4868e0d0dc8891cc4f3e SHA256: 2785d4f31f2eca55f953e4f34d448420d42fc1f61db6e514e1a2e8853cbdfba8 Homepage: http://ceph.com/ Description-en: RADOS block device client library RBD is a block device striped across multiple distributed objects in RADOS, a reliable, autonomic distributed object storage cluster developed as part of the Ceph distributed storage system. This is a shared library allowing applications to manage these block devices.

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

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

sudo apt-get update

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

sudo apt-get -y install librbd1

Install librbd1 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install librbd1 using apt by running the following command:

sudo apt -y install librbd1

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

sudo aptitude -y install librbd1

How To Uninstall librbd1 on Ubuntu 20.04

To uninstall only the librbd1 package we can use the following command:

sudo apt-get remove librbd1

Uninstall librbd1 And Its Dependencies

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

sudo apt-get -y autoremove librbd1

Remove librbd1 Configurations and Data

To remove librbd1 configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge librbd1

Remove librbd1 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge librbd1

References

Summary

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