opensm command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
opensm: command not found
or when using sudo you get the following error message
sudo: opensm: command not found
Solutions to opensm: command not found
How To Fix opensm: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu opensm is provided by opensm package.
opensm is:
OpenSM provides an implementation of an InfiniBand Subnet Manager (SM) and Administrator (SA). One Subnet Manager is required to run on each InfiniBand subnet in order to initialize the InfiniBand hardware.
To fix this problem, we can install more using the command below.
sudo apt-get -y install opensm
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install opensm.
sudo apt -y install opensm
Or if you have aptitude installed you can use the following command.
sudo aptitude install opensm
Summary
In this tutorial we learn how to fix opensm command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.