How To Install opensm-libs on Rocky Linux 8

In this tutorial we learn how to install opensm-libs on Rocky Linux 8. opensm-libs is Libraries used by opensm and included utilities

Introduction

In this tutorial we learn how to install opensm-libs on Rocky Linux 8.

What is opensm-libs

Shared libraries for Infiniband user space access

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

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

sudo dnf -y install opensm-libs

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

sudo yum -y install opensm-libs

How To Uninstall opensm-libs on Rocky Linux 8

To uninstall only the opensm-libs package we can use the following command:

sudo dnf remove opensm-libs

opensm-libs Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/31
/usr/lib/.build-id/31/58609c43b5a6d8357bc76c4fb94e7e26426043
/usr/lib/.build-id/65
/usr/lib/.build-id/65/87f4225d5c19cdbf3036524750961590404913
/usr/lib/.build-id/ea
/usr/lib/.build-id/ea/500d995795c6670dc8c8296851b5b23f788164
/usr/lib/libopensm.so.9
/usr/lib/libopensm.so.9.1.0
/usr/lib/libosmcomp.so.5
/usr/lib/libosmcomp.so.5.0.0
/usr/lib/libosmvendor.so.5
/usr/lib/libosmvendor.so.5.0.0
/usr/lib/.build-id
/usr/lib/.build-id/5e
/usr/lib/.build-id/5e/3fbbdcc66765640687ee03a7f5186aa1030955
/usr/lib/.build-id/9a
/usr/lib/.build-id/9a/6c572baf6b79aa3ce3cedfb58b8a8fc7cc3237
/usr/lib/.build-id/b8
/usr/lib/.build-id/b8/b8cb15ff6b28dda8cb7437a9c3ed183151e877
/usr/lib64/libopensm.so.9
/usr/lib64/libopensm.so.9.1.0
/usr/lib64/libosmcomp.so.5
/usr/lib64/libosmcomp.so.5.0.0
/usr/lib64/libosmvendor.so.5
/usr/lib64/libosmvendor.so.5.0.0

References

Summary

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