---
title: "Lmod software modules"
id: "11193"
type: "epkb_post_type_1"
slug: "modules-intro"
published_at: "2014-05-06T15:23:29+00:00"
modified_at: "2026-11-12T21:51:55+00:00"
url: "https://docs.rc.fas.harvard.edu/kb/modules-intro/"
markdown_url: "https://docs.rc.fas.harvard.edu/kb/modules-intro.md"
excerpt: "About Modules On the cluster, we want a variety of apps available, including different versions of the same app and apps that are incompatible. Part of how we accomplish this is by using environment modules. When you first login to..."
taxonomy_epkb_post_type_1_category:
  - "Software"
---

# Lmod software modules

## About Modules

On the cluster, we want a variety of apps available, including different versions of the same app and apps that are incompatible. Part of how we accomplish this is by using *environment modules*. When you first login to the cluster, you are presented with a very basic software environment. One of the ways apps are made available to you or your jobs by *loading* the modules for them. The modules update shell environment variables so that the system can find and use the apps of your choice. Modules replace the need for separate setup scripts.

Our implementation of environment modules uses [Lmod](https://lmod.readthedocs.io/en/latest/)
 and the bash shell. That page has some excellent documentation for those wishing to learn more about Lmod. In addition to some new features, we have adopted a more systematic naming and versioning convention, and we are more actively curating our app inventory. Below is a condensed version with more FASRC-specific information.

## What Software Qualifies for Modules

There is a wide variety of software that users use along with a variety of needs in terms of versioning and build style. To support all of that is intractable. Software modules are those packages that are considered core to cluster operations, which include:

- Compilers (e.g., gcc, intel)
- MPI
- [Python](https://docs.rc.fas.harvard.edu/kb/python/)
- [R](https://docs.rc.fas.harvard.edu/kb/r-and-rstudio/)
- Commonly Used Math Libraries (e.g. FFTW, GSL, MKL)
- Commonly Used IO Libraries (e.g. HDF5, NetCDF)
- Licensed Software (e.g., Matlab)

FASRC provide these software via modules. Decisions on if a software qualifies to be a module is made at the sole discretion of the FASRC staff. For other libraries that are not in our modules we invite users to look at our [Software](https://docs.rc.fas.harvard.edu/kb/software/)
 documentation for other options for installation. Particularly tools like [Spack](https://docs.rc.fas.harvard.edu/kb/spack-package-manager/)
 can build a host of different libraries with a variety of options. [Containers](https://docs.rc.fas.harvard.edu/kb/containers/)
 are also an option for very complicated software stacks or those with Dockerfiles.

## How to Use Modules

You can load one or more modules using the `module load <module(s) name>` command. Examples:

```
module load matlab/R2025b-fasrc01
module load gcc/15.2.0-fasrc01 openmpi/5.0.8-fasrc01 hdf5/1.14.6-fasrc01
```

To see what modules you have loaded, run:

```
module list
```

To unload a particular module, run:

```
module unload <module name>
```

To unload all modules currently loaded, run:

```
module purge
```

To save all currently-loaded modules as a collection, run:

```
module save <collection-name>
```

To restore a previously-saved collection of modules, run:

```
module restore <collection-name>
```

## Finding Modules from the command line

For the most robust listing of modules, use `module avail`, `module spider`, and `module overview`.

### Module avail

`module avail` lists all of the modules available at your current level of the hierarchy based on compiler and MPI. Bear in mind that the `module avail` command does not show *all* the different modules you could possibly use, but only the ones that you could load in the current environment, given the modules already loaded.

If the avail list is too long consider trying:

```
module --default avail
```

#### Loading a Module May Reveal More Modules

`module avail` is used here to demonstrate how you can see the change in available modules when loading modules that unlock a dependency and make other modules available — this is Lmod’s hierarchy. When no modules are loaded, `module avail` lists module in `/n/sw/helmod-rocky8/modulefiles/Core`:

```
[jharvard@holylogin08 ~]$ module avail

----------------------- /n/sw/helmod-rocky8/modulefiles/Core -----------------------

... omitted output ...
```

Suppose you load a gcc compiler module, then this will make available all the apps compiled with that version of the gcc compiler. Note the extra set of modules listed under `/n/sw/helmod-rocky8/modulefiles/Comp/gcc/15.2.0-fasrc01`:

```
[jharvard@holylogin08 ~]$ module load gcc/15.2.0-fasrc01
[jharvard@holylogin08 ~]$ module avail

------------- /n/sw/helmod-rocky8/modulefiles/Comp/gcc/15.2.0-fasrc01 --------------
mpich/4.3.1-fasrc01 openmpi/5.0.8-fasrc01
mpich/5.0.0-fasrc01 (D) openmpi/5.0.10-fasrc01 (D)

----------------------- /n/sw/helmod-rocky8/modulefiles/Core -----------------------

... omitted output ...
```

The modules listed under `/n/sw/helmod-rocky8/modulefiles/Comp/gcc/15.2.0-fasrc01` were software compiled with `gcc/15.2.0-fasrc01`.

### Module spider

The `module spider <name or partial name>` command (example: *module spider math*) lists details about all available modules that contains the string “math”:

```
[jharvard@holylogin08 ~]$ module spider math

--------------------------------------------------------------------------------
mathematica:
--------------------------------------------------------------------------------
Description:
Mathematica is a computational software program used in many scientific,
engineering, mathematical and computing fields, based on symbolic
mathematics

Versions:
mathematica/12.1.1-fasrc01
mathematica/13.3.0-fasrc01

--------------------------------------------------------------------------------
For detailed information about a specific "mathematica" package (including how to load the modules) use the module's full name.
Note that names that have a trailing (E) are extensions provided by other modules.
For example:

$ module spider mathematica/13.3.0-fasrc01
--------------------------------------------------------------------------------
```

### Module overview

`module overview` or `ml ov`to display the number of modules for each name. For example:

```
[jharvard@holylogin06 ~]$ module overview

-------------- /n/sw/helmod-rocky8/modulefiles/Core -----------------------------------
Anaconda2     (1) comsol     (4) gurobi      (4) lumerical-seas    (4) python    (10)
IDL           (2) cuda       (8) intel-mkl   (8) magma             (4) rstudio   (5)
Mambaforge    (3) cudnn      (6) intel       (9) mathematica       (3) sage      (2)
Miniforge3    (7) cyana      (1) intelpython (1) matlab            (5) sas       (1)
QChem         (2) dmtcp      (3) jasper      (1) moe               (1) sqlite    (1)
R             (8) flex       (1) jdk         (1) mpc               (5) stata     (1)
abaqus        (3) gaussian   (4) jpeg        (1) mpfr              (4) szip      (1)
aocc          (1) gcc        (7) knime       (3) ncf               (1) vscode    (1)
autoconf      (1) gmp        (2) knitro      (1) nvhpc             (2) xplor-nih (1)
cmake         (7) gsl        (2) libpng      (1) pari              (2) zlib      (5)
comsol-knirck (2) gurobi-gpu (1) libtiff     (1) pycharm-community (1)
```

## Finding modules from Open OnDemand

**Note**: you must be connected to the [FASRC VPN](https://docs.rc.fas.harvard.edu/kb/vpn-setup/)
 to use Open OnDemand.

You can see all the available modules represented visually through the [OOD Dashboard](https://docs.rc.fas.harvard.edu/kb/virtual-desktop/)
 using your web browser.

Log in to [Cannon OOD](https://rcood.rc.fas.harvard.edu/)
 or [FASSE OOD](https://fasseood.rc.fas.harvard.edu/)
 and navigate through the top menu to **Clusters** -> **Module Browser**

[https://docs.rc.fas.harvard.edu/wp-content/uploads/2014/05/OOD_module_browser.png](https://docs.rc.fas.harvard.edu/wp-content/uploads/2014/05/OOD_module_browser.png)

Click the name of a module to display details. Or, you can type the module name to search, for example, search for openmpi. All openmpi versions are displayed. When you click on the on a specific version, the dependencies are displayed.

[https://docs.rc.fas.harvard.edu/wp-content/uploads/2014/05/OOD_openmpi_module.png](https://docs.rc.fas.harvard.edu/wp-content/uploads/2014/05/OOD_openmpi_module.png)

## Module Naming and Versioning

You can load specific versions by supplying the full module name. Example:

```
 module load matlab/R2025b-fasrc01
```

Or let the module system automatically load the latest version, for example:

```
 module load matlab
```

The default is determined either according to alphanumeric sorting or in some cases the version we have chosen to be the default latest version based on stability or commonality.

It is **strongly recommended** to load modules specifying name and specific version. This way you are protected in case the default version changes.

## Version Changes When Loading Dependencies.

If module A requires module B, and you already have some version of B loaded, A will usually consider the dependency satisfied, rather than force a specific different (often older) version of B to be loaded. This has the potential to cause issues if a specific version is required. Be sure to look at the [module’s requirements](https://docs.rc.fas.harvard.edu/kb/modules-intro/)
 before assuming this will work. Or, at the very least, test your script before trusting that it will work.

## More about software

You can find out more about modules and software on the following pages:

- [Software on the cluster](https://docs.rc.fas.harvard.edu/kb/software/)
  - [Singularity on the cluster](https://docs.rc.fas.harvard.edu/kb/singularity-on-the-cluster/)
  - [Spack](https://docs.rc.fas.harvard.edu/kb/spack/)

- [Installing Software Yourself](https://docs.rc.fas.harvard.edu/kb/installing-software-yourself/)

Bookmarkable Links

- [1. About Modules](#About_Modules)
- [2. What Software Qualifies for Modules](#What_Software_Qualifies_for_Modules)
- [3. How to Use Modules](#How_to_Use_Modules)
- [4. Finding Modules from the command line](#Finding_Modules_from_the_command_line)
  - [4.1. Module avail](#Module_avail)
    - [4.1.1. Loading a Module May Reveal More Modules](#Loading_a_Module_May_Reveal_More_Modules)

  - [4.2. Module spider](#Module_spider)
  - [4.3. Module overview](#Module_overview)

- [5. Finding modules from Open OnDemand](#Finding_modules_from_Open_OnDemand)
- [6. Module Naming and Versioning](#Module_Naming_and_Versioning)
- [7. Version Changes When Loading Dependencies.](#Version_Changes_When_Loading_Dependencies)
- [8. More about software](#More_about_software)

Last UpdatedNovember 12, 2026
