While working on the HPC cluster the user may need some specific programs that are not installed by default. Many of them can be installed via environment modules.
To check the available modules, the command to be issued is
-bash-5.1$ module avail ---------------------------------------------------------------------------- /usr/share/Modules/modulefiles ---------------------------------------------------------------------------- dot module-git module-info modules null use.own -------------------------------------------------------------------------------- /usr/share/modulefiles -------------------------------------------------------------------------------- mpi/openmpi-x86_64 Key: modulepath
The user can load one of the available modules with the command
-bash-5.1$ module load <module_name>
A list of the loaded modules can be retrieved with the following command
-bash-5.1$ module list Currently Loaded Modulefiles: 1) mpi/openmpi-x86_64
In this example two modules have been loaded (openmpi).
When the user does not need a module anymore, it can be unloaded:
-bash-5.1$ module unload <module_name>