How To Install opensm.x86_64 on Amazon Linux 2

In this tutorial we learn how to install opensm.x86_64 in Amazon Linux 2. opensm.x86_64 is OpenIB InfiniBand Subnet Manager and management utilities

Introduction

In this tutorial we learn how to install opensm.x86_64 on Amazon Linux 2.

What is opensm.x86_64

OpenSM is the OpenIB project’s Subnet Manager for Infiniband networks. The subnet manager is run as a system daemon on one of the machines in the infiniband fabric to manage the fabric’s routing state. This package also contains various tools for diagnosing and testing Infiniband networks that can be used from any machine and do not need to be run on a machine running the opensm daemon.

We can use yum to install opensm.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install opensm.x86_64.

Install opensm.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install opensm.x86_64 using yum by running the following command:

sudo yum -y install opensm.x86_64

How To Uninstall opensm.x86_64 on Amazon Linux 2

To uninstall only the opensm.x86_64 package we can use the following command:

sudo yum remove opensm.x86_64

opensm.x86_64 Package Contents on Amazon Linux 2

/etc/logrotate.d/opensm
/etc/rdma/opensm.conf
/etc/rwtab.d/opensm
/etc/sysconfig/opensm
/usr/lib/systemd/system/opensm.service
/usr/libexec/opensm-launch
/usr/sbin/opensm
/usr/sbin/osmtest
/usr/sbin/sldd.sh
/usr/share/doc/opensm-3.3.20
/usr/share/doc/opensm-3.3.20/AUTHORS
/usr/share/doc/opensm-3.3.20/ChangeLog
/usr/share/doc/opensm-3.3.20/INSTALL
/usr/share/doc/opensm-3.3.20/NEWS
/usr/share/doc/opensm-3.3.20/QoS_management_in_OpenSM.txt
/usr/share/doc/opensm-3.3.20/README
/usr/share/doc/opensm-3.3.20/current-routing.txt
/usr/share/doc/opensm-3.3.20/opensm-sriov.txt
/usr/share/doc/opensm-3.3.20/opensm_release_notes-3.3.txt
/usr/share/doc/opensm-3.3.20/partition-config.txt
/usr/share/doc/opensm-3.3.20/performance-manager-HOWTO.txt
/usr/share/licenses/opensm-3.3.20
/usr/share/licenses/opensm-3.3.20/COPYING
/usr/share/man/man5
/usr/share/man/man5/torus-2QoS.conf.5.gz
/usr/share/man/man8
/usr/share/man/man8/opensm.8.gz
/usr/share/man/man8/osmtest.8.gz
/usr/share/man/man8/torus-2QoS.8.gz
/var/cache/opensm

References

Summary

In this tutorial we learn how to install opensm.x86_64 on Amazon Linux 2 using yum.