How To Install libibverbs on Rocky Linux 8

In this tutorial we learn how to install libibverbs on Rocky Linux 8. libibverbs is A library and drivers for direct userspace use of RDMA (InfiniBand/iWARP/RoCE) hardware

Introduction

In this tutorial we learn how to install libibverbs on Rocky Linux 8.

What is libibverbs

libibverbs is a library that allows userspace processes to use RDMA “verbs” as described in the InfiniBand Architecture Specification and the RDMA Protocol Verbs Specification. This includes direct hardware access from userspace to InfiniBand/iWARP adapters (kernel bypass) for fast path operations. Device-specific plug-in ibverbs userspace drivers are included - libbxnt_re - libcxgb4 - libefa - libhfi1 - libhns - libi40iw - libmlx4 - libmlx5 - libqedr - librxe - libsiw - libvmw_pvrdma

We can use yum or dnf to install libibverbs on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install libibverbs.

Install libibverbs on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install libibverbs

Install libibverbs on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install libibverbs

How To Uninstall libibverbs on Rocky Linux 8

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

sudo dnf remove libibverbs

libibverbs Package Contents on Rocky Linux 8

/etc/libibverbs.d
/etc/libibverbs.d/bnxt_re.driver
/etc/libibverbs.d/cxgb4.driver
/etc/libibverbs.d/efa.driver
/etc/libibverbs.d/hfi1verbs.driver
/etc/libibverbs.d/hns.driver
/etc/libibverbs.d/i40iw.driver
/etc/libibverbs.d/mlx4.driver
/etc/libibverbs.d/mlx5.driver
/etc/libibverbs.d/qedr.driver
/etc/libibverbs.d/rxe.driver
/etc/libibverbs.d/siw.driver
/etc/libibverbs.d/vmw_pvrdma.driver
/usr/lib/.build-id
/usr/lib/.build-id/1a
/usr/lib/.build-id/1a/8fd8809d4419ed475903e38d7e458c6045b1cb
/usr/lib/.build-id/33
/usr/lib/.build-id/33/92fa59819d9a6f3d9caad657800a433f2ddfbb
/usr/lib/.build-id/33/a8b3b5be96b8d32ce394b95722e7f73f0935fc
/usr/lib/.build-id/37
/usr/lib/.build-id/37/711e7081f1204006728f0057896b269bc35965
/usr/lib/.build-id/3c
/usr/lib/.build-id/3c/0ec29de7ebf2d3e4282498ab188a9aa64d9741
/usr/lib/.build-id/61
/usr/lib/.build-id/61/70453c57f249407726701253b979200fd871ba
/usr/lib/.build-id/65
/usr/lib/.build-id/65/f5cc4f32ae3790d699f738f2a633291a90320c
/usr/lib/.build-id/72
/usr/lib/.build-id/72/c00dda44b14fbe9bd1db6ba12bf1565ed8824a
/usr/lib/.build-id/7e
/usr/lib/.build-id/7e/18fac254db9050c3c1dff88043cf8d3fb692f2
/usr/lib/.build-id/a0
/usr/lib/.build-id/a0/7b4efd6334eda9be5d5c5c2312e38ffab73b23
/usr/lib/.build-id/a1
/usr/lib/.build-id/a1/4e5dc1193c59790cbaeaff598226e4c62de097
/usr/lib/.build-id/b2
/usr/lib/.build-id/b2/c7b06de8ba111c7506847ebe90be2c5e0d5de7
/usr/lib/.build-id/fb
/usr/lib/.build-id/fb/f1ea3183387d264b80769d669785f44d30f796
/usr/lib64/libefa.so.1
/usr/lib64/libefa.so.1.1.32.0
/usr/lib64/libibverbs
/usr/lib64/libibverbs.so.1
/usr/lib64/libibverbs.so.1.11.32.0
/usr/lib64/libibverbs/libbnxt_re-rdmav25.so
/usr/lib64/libibverbs/libcxgb4-rdmav25.so
/usr/lib64/libibverbs/libefa-rdmav25.so
/usr/lib64/libibverbs/libhfi1verbs-rdmav25.so
/usr/lib64/libibverbs/libhns-rdmav25.so
/usr/lib64/libibverbs/libi40iw-rdmav25.so
/usr/lib64/libibverbs/libmlx4-rdmav25.so
/usr/lib64/libibverbs/libmlx5-rdmav25.so
/usr/lib64/libibverbs/libqedr-rdmav25.so
/usr/lib64/libibverbs/librxe-rdmav25.so
/usr/lib64/libibverbs/libsiw-rdmav25.so
/usr/lib64/libibverbs/libvmw_pvrdma-rdmav25.so
/usr/lib64/libmlx4.so.1
/usr/lib64/libmlx4.so.1.0.32.0
/usr/lib64/libmlx5.so.1
/usr/lib64/libmlx5.so.1.16.32.0
/usr/share/doc/rdma-core/libibverbs.md
/usr/share/doc/rdma-core/rxe.md
/usr/share/doc/rdma-core/tag_matching.md
/usr/share/man/man7/mlx4dv.7.gz
/usr/share/man/man7/mlx5dv.7.gz
/usr/share/man/man7/rxe.7.gz
/etc/libibverbs.d
/etc/libibverbs.d/bnxt_re.driver
/etc/libibverbs.d/cxgb4.driver
/etc/libibverbs.d/efa.driver
/etc/libibverbs.d/hfi1verbs.driver
/etc/libibverbs.d/hns.driver
/etc/libibverbs.d/i40iw.driver
/etc/libibverbs.d/mlx4.driver
/etc/libibverbs.d/mlx5.driver
/etc/libibverbs.d/qedr.driver
/etc/libibverbs.d/rxe.driver
/etc/libibverbs.d/siw.driver
/etc/libibverbs.d/vmw_pvrdma.driver
/usr/lib/.build-id
/usr/lib/.build-id/33
/usr/lib/.build-id/33/f5a9b3f1e64fc544395e539ac4255cdddc457b
/usr/lib/.build-id/3e
/usr/lib/.build-id/3e/fd7020c9572830ea72ece43428ffdeeb89d13f
/usr/lib/.build-id/44/654f4a07e130e272ae663b660c6d296739c4e3
/usr/lib/.build-id/4c
/usr/lib/.build-id/4c/ef6dee530a686c73b271caf39863104df6c5ec
/usr/lib/.build-id/55
/usr/lib/.build-id/55/39ce128b09359c0d1f2b9b337560f5ba35fb24
/usr/lib/.build-id/57
/usr/lib/.build-id/57/a9f63672f56f6ba8a5fdc6827f94a3fe584e08
/usr/lib/.build-id/81
/usr/lib/.build-id/81/f97c84d80b2f495cbf384e78dfd883b5a3dbfd
/usr/lib/.build-id/9b
/usr/lib/.build-id/9b/a02a1c8d017160fc84dda1e02be4d40f773dea
/usr/lib/.build-id/a5
/usr/lib/.build-id/a5/5f1a53269b3446fffd7de1568d84377b129a3d
/usr/lib/.build-id/cb/896890e362efc7b37baeeffd2324fa93bddcf3
/usr/lib/.build-id/cf
/usr/lib/.build-id/cf/78eb941b0f9dc892b0cb92e0c9c757f506cf76
/usr/lib/.build-id/d9
/usr/lib/.build-id/d9/b7613e2c33ed46805da26b3a9c269a54ada582
/usr/lib/.build-id/f1
/usr/lib/.build-id/f1/4785147a58a7adde884265d8ff2e007508b2ea
/usr/lib/libefa.so.1
/usr/lib/libefa.so.1.1.32.0
/usr/lib/libibverbs
/usr/lib/libibverbs.so.1
/usr/lib/libibverbs.so.1.11.32.0
/usr/lib/libibverbs/libbnxt_re-rdmav25.so
/usr/lib/libibverbs/libcxgb4-rdmav25.so
/usr/lib/libibverbs/libefa-rdmav25.so
/usr/lib/libibverbs/libhfi1verbs-rdmav25.so
/usr/lib/libibverbs/libhns-rdmav25.so
/usr/lib/libibverbs/libi40iw-rdmav25.so
/usr/lib/libibverbs/libmlx4-rdmav25.so
/usr/lib/libibverbs/libmlx5-rdmav25.so
/usr/lib/libibverbs/libqedr-rdmav25.so
/usr/lib/libibverbs/librxe-rdmav25.so
/usr/lib/libibverbs/libsiw-rdmav25.so
/usr/lib/libibverbs/libvmw_pvrdma-rdmav25.so
/usr/lib/libmlx4.so.1
/usr/lib/libmlx4.so.1.0.32.0
/usr/lib/libmlx5.so.1
/usr/lib/libmlx5.so.1.16.32.0
/usr/share/doc/rdma-core/libibverbs.md
/usr/share/doc/rdma-core/rxe.md
/usr/share/doc/rdma-core/tag_matching.md
/usr/share/man/man7/mlx4dv.7.gz
/usr/share/man/man7/mlx5dv.7.gz
/usr/share/man/man7/rxe.7.gz

References

Summary

In this tutorial we learn how to install libibverbs on Rocky Linux 8 using yum and dnf.