How To Install librados2 on Ubuntu 20.04

In this tutorial we learn how to install librados2 on Ubuntu 20.04. librados2 is RADOS distributed object store client library RADOS distributed object store client library RADOS distributed object store client library

Introduction

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

What is librados2

librados2 is:

RADOS is a reliable, autonomic distributed object storage cluster developed as part of the Ceph distributed storage system. This is a shared library allowing applications to access the distributed object store using a simple file-like interface. Task: samba-server

Package: librados2 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: 13843 Depends: libblkid1 (>= 2.17.2), libboost-iostreams1.71.0, libboost-thread1.71.0, libc6 (>= 2.29), libgcc-s1 (>= 3.0), libibverbs1 (>= 1.1.6), librdmacm1 (>= 1.0.15), libssl1.1 (>= 1.1.0), libstdc++6 (>= 9), libudev1 (>= 183) Conflicts: librados, librados1 Replaces: librados, librados1 Filename: pool/main/c/ceph/librados2_15.2.12-0ubuntu0.20.04.1_amd64.deb Size: 3216292 MD5sum: 4fd0ab9b9661a1577a672775d9eeacb9 SHA1: a88b421523180d4221fd7779f54beb0baed16ace SHA256: 9827114151dcdc353d07c7ff5a47449306c45b260d3f68bc60a0266f9fce4389 SHA512: 5a8cdf170bd1ac7f748f685596356d230edeeb28c337547eaf904088734cb211b5391a775c6c18321d84485c8d06ed87df5fb8eb71d3ba8deb66ae50ee4c58dd Homepage: http://ceph.com/ Description-en: RADOS distributed object store client library RADOS is a reliable, autonomic distributed object storage cluster developed as part of the Ceph distributed storage system. This is a shared library allowing applications to access the distributed object store using a simple file-like interface. Task: samba-server

Package: librados2 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: 13959 Depends: libblkid1 (>= 2.17.2), libboost-iostreams1.71.0, libboost-thread1.71.0, libc6 (>= 2.29), libgcc-s1 (>= 3.0), libibverbs1 (>= 1.1.6), librdmacm1 (>= 1.0.15), libssl1.1 (>= 1.1.0), libstdc++6 (>= 9), libudev1 (>= 183) Conflicts: librados, librados1 Replaces: librados, librados1 Filename: pool/main/c/ceph/librados2_15.2.1-0ubuntu1_amd64.deb Size: 3236236 MD5sum: 1f9cb37eafcf37d9545a5f696de6034c SHA1: 066195a6ed5a5f2a5264ae51672cdcd422348fd8 SHA256: 6514f12224eb3ae8417a0f8611312ad3e17fe68a6d8e1f9f49750f615b60a166 Homepage: http://ceph.com/ Description-en: RADOS distributed object store client library RADOS is a reliable, autonomic distributed object storage cluster developed as part of the Ceph distributed storage system. This is a shared library allowing applications to access the distributed object store using a simple file-like interface. Task: samba-server

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

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

sudo apt-get update

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

sudo apt-get -y install librados2

Install librados2 Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install librados2

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

sudo aptitude -y install librados2

How To Uninstall librados2 on Ubuntu 20.04

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

sudo apt-get remove librados2

Uninstall librados2 And Its Dependencies

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

sudo apt-get -y autoremove librados2

Remove librados2 Configurations and Data

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

sudo apt-get -y purge librados2

Remove librados2 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge librados2

References

Summary

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