How To Install nbd on Fedora 34

nbd is Network Block Device user-space tools (TCP version)

Introduction

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

What is nbd

Tools for the Linux Kernel’s network block device, allowing you to use remote block devices over a TCP/IP network.

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

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

sudo dnf -y install nbd

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

sudo yum -y install nbd

How To Uninstall nbd on Fedora 34

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

sudo dnf remove nbd

nbd Package Contents on Fedora 34

/etc/sysconfig/nbd-server
/usr/bin/gznbd
/usr/bin/nbd-server
/usr/bin/nbd-trdump
/usr/lib/.build-id
/usr/lib/.build-id/00
/usr/lib/.build-id/00/70c0fde7a20493cff9d72dcd8935d20a0cc6b3
/usr/lib/.build-id/1e
/usr/lib/.build-id/1e/989ff7f55f5b4ccc2e6b7bc9ef65c6f9abd12b
/usr/lib/.build-id/82
/usr/lib/.build-id/82/5e7abfc547529981e69c2abd519accd057709b
/usr/lib/.build-id/bc
/usr/lib/.build-id/bc/1a9b92d1afbab83910d787cf0570d3e8f76dcc
/usr/lib/.build-id/e7
/usr/lib/.build-id/e7/7676966adff02d3d73d980a89399ba4491b0ae
/usr/lib/systemd/system/nbd-server.service
/usr/lib/systemd/system/[email protected]
/usr/lib/systemd/system/[email protected]
/usr/lib/systemd/system/[email protected]/modprobe.conf
/usr/sbin/min-nbd-client
/usr/sbin/nbd-client
/usr/share/doc/nbd
/usr/share/doc/nbd/README.md
/usr/share/doc/nbd/proto.md
/usr/share/doc/nbd/todo.txt
/usr/share/doc/nbd/uri.md
/usr/share/licenses/nbd
/usr/share/licenses/nbd/COPYING
/usr/share/man/man1/nbd-server.1.gz
/usr/share/man/man1/nbd-trdump.1.gz
/usr/share/man/man5/nbd-server.5.gz
/usr/share/man/man5/nbdtab.5.gz
/usr/share/man/man8/nbd-client.8.gz

References

Summary

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