How To Install libnbd on Fedora 34

libnbd is NBD client library in userspace NBD client library in userspace

Introduction

In this tutorial we learn how to install libnbd on Fedora 34.

What is libnbd

NBD — Network Block Device — is a protocol for accessing Block Devices (hard disks and disk-like things) over a Network. This is the NBD client library in userspace, a simple library for writing NBD clients. The key features are * Synchronous and asynchronous APIs, both for ease of use and for writing non-blocking, multithreaded clients. * High performance. * Minimal dependencies for the basic library. * Well-documented, stable API. * Bindings in several programming languages. libnbd 1.8.2 1.fc34 x86_64 134 k libnbd-1.8.2-1.fc34.src.rpm updates NBD client library in userspace https LGPLv2+ NBD — Network Block Device — is a protocol for accessing Block Devices (hard disks and disk-like things) over a Network. This is the NBD client library in userspace, a simple library for writing NBD clients. The key features are * Synchronous and asynchronous APIs, both for ease of use and for writing non-blocking, multithreaded clients. * High performance. * Minimal dependencies for the basic library. * Well-documented, stable API. * Bindings in several programming languages.

We can use yum or dnf to install libnbd on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install libnbd.

Install libnbd on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install libnbd using dnf by running the following command:

sudo dnf -y install libnbd

Install libnbd on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install libnbd using yum by running the following command:

sudo yum -y install libnbd

How To Uninstall libnbd on Fedora 34

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

sudo dnf remove libnbd

libnbd Package Contents on Fedora 34

/usr/bin/nbdcopy
/usr/bin/nbdinfo
/usr/lib/.build-id
/usr/lib/.build-id/0a
/usr/lib/.build-id/0a/ad2a4a1cbc133e78a5c96916a58cb9a6d37084
/usr/lib/.build-id/55
/usr/lib/.build-id/55/b74abed0af54291d12ee1829ee2bd8689f2665
/usr/lib/.build-id/d5
/usr/lib/.build-id/d5/a096a85809eddba4eee8f2871afb0bf05c88f2
/usr/lib/libnbd.so.0
/usr/lib/libnbd.so.0.0.0
/usr/share/doc/libnbd
/usr/share/doc/libnbd/README
/usr/share/licenses/libnbd
/usr/share/licenses/libnbd/COPYING.LIB
/usr/share/man/man1/nbdcopy.1.gz
/usr/share/man/man1/nbdinfo.1.gz
/usr/bin/nbdcopy
/usr/bin/nbdinfo
/usr/lib/.build-id
/usr/lib/.build-id/1d
/usr/lib/.build-id/1d/cea15101400155f5e41420b4c22156146ee1a0
/usr/lib/.build-id/27
/usr/lib/.build-id/27/5059c4d908d878288c5a8cf75d2aa73ebb6e38
/usr/lib/.build-id/fe
/usr/lib/.build-id/fe/54811aa6fe2e2884d6eea9a30f6b14dcc75edc
/usr/lib64/libnbd.so.0
/usr/lib64/libnbd.so.0.0.0
/usr/share/doc/libnbd
/usr/share/doc/libnbd/README
/usr/share/licenses/libnbd
/usr/share/licenses/libnbd/COPYING.LIB
/usr/share/man/man1/nbdcopy.1.gz
/usr/share/man/man1/nbdinfo.1.gz
/usr/bin/nbdcopy
/usr/bin/nbdinfo
/usr/lib/.build-id
/usr/lib/.build-id/33
/usr/lib/.build-id/33/0489bbd5b9804c002e0c0ef22dd2d085c09376
/usr/lib/.build-id/7f
/usr/lib/.build-id/7f/d481eafca5bcb9ed0116d28f40a05e1e6b2b62
/usr/lib/.build-id/d4
/usr/lib/.build-id/d4/8d23940b40b93557549b4f05e0873771552197
/usr/lib/libnbd.so.0
/usr/lib/libnbd.so.0.0.0
/usr/share/doc/libnbd
/usr/share/doc/libnbd/README
/usr/share/licenses/libnbd
/usr/share/licenses/libnbd/COPYING.LIB
/usr/share/man/man1/nbdcopy.1.gz
/usr/share/man/man1/nbdinfo.1.gz
/usr/bin/nbdcopy
/usr/bin/nbdinfo
/usr/lib/.build-id
/usr/lib/.build-id/3d
/usr/lib/.build-id/3d/ad878adee72e19a9a77c290c78ccc8c4bc1e56
/usr/lib/.build-id/87
/usr/lib/.build-id/87/ab3bcf5476929c821720081fec27923ff44146
/usr/lib/.build-id/eb
/usr/lib/.build-id/eb/3cce8ec892e29cace0eb36fac222b72ba461f1
/usr/lib64/libnbd.so.0
/usr/lib64/libnbd.so.0.0.0
/usr/share/doc/libnbd
/usr/share/doc/libnbd/README
/usr/share/licenses/libnbd
/usr/share/licenses/libnbd/COPYING.LIB
/usr/share/man/man1/nbdcopy.1.gz
/usr/share/man/man1/nbdinfo.1.gz

References

Summary

In this tutorial we learn how to install libnbd on Fedora 34 using yum and dnf.