MODULE(1) User Contributed Perl Documentation MODULE(1)

module

module [options] sub-command [args ...]

This tool allow a user to control their environment by load and unloading modulefiles. See https://lmod.readthedocs.org for more details.

This help message
Site controlled avail style: system (default: system)
Lmod regression testing
brief listing with only user specified modules
Program tracing written to stderr
Program tracing written to stderr (where dbglvl is a number 1,2,3)
When doing a restore use specified version, do not follow defaults
List default modules only when used with avail
Do not print out warnings
Expert mode
Write out in machine readable format for commands: list, avail, spider, savelist
loading Lmod for first time in a user shell
Load latest (ignore default)
Treat the cache file(s) as out-of-date
Turn off expert and quiet flag
Print modulefile in raw output when used with show
Use this as max term width
Print version info and quit
use regular expression match
Dump git version in a machine readable way and quit
Dump version in a machine readable way and quit
Dump the name Lmod in a machine readable way and quit
Checking module command syntax: do not load
Report Lmod Configuration
Report Lmod Configuration differences
Report Lmod Configuration in json format
Report Module Table State
report run times
force removal of a sticky module or save an empty collection
Send the output of list, avail, spider to stdout (not stderr)
Force output of list, avail and spider to stderr
Avail and spider will report hidden modules
a timeout for spider
trace major changes such as loads
Do not print extensions
(Interal Use Only) When Lmod is protecting LD_PRELOAD and LD_LIBRARY_PATH
Just print the file location when using show
report extensions when doing a terse avail
Generate pod format

module [options] sub-command [args ...]

Help sub-commands:

help                              prints this message
help                module [...]  print help message from module(s)

Loading/Unloading sub-commands:

load | add          module [...]  load module(s)
try-load | try-add  module [...]  Add module(s), do not complain if not
                                  found
del | unload        module [...]  Remove module(s), do not complain if not
                                  found
swap | sw | switch  m1 m2         unload m1 and load m2
purge                             unload all modules
refresh                           reload aliases from current list of
                                  modules.
update                            reload all currently loaded modules.

Listing / Searching sub-commands:

list                              List loaded modules
list                s1 s2 ...     List loaded modules that match the
                                  pattern
avail | av                        List available modules
avail | av          string        List available modules that contain
                                  "string".
category | cat                    List all categories
category | cat      s1 s2 ...     List all categories that match the
                                  pattern and display their modules
overview | ov                     List all available modules by short
                                  names with number of versions
overview | ov       string        List available modules by short names
                                  with number of versions that contain
                                  "string"
spider                            List all possible modules
spider              module        List all possible version of that module
                                  file
spider              string        List all module that contain the
                                  "string".
spider              name/version  Detailed information about that version
                                  of the module.
whatis              module        Print whatis information about module
keyword | key       string        Search all name and whatis that contain
                                  "string".

Searching with Lmod:

All searching (spider, list, avail, keyword) support regular expressions:

-r spider           '^p'          Finds all the modules that start with
                                  `p' or `P'
-r spider           mpi           Finds all modules that have "mpi" in
                                  their name.
-r spider           'mpi$         Finds all modules that end with "mpi" in
                                  their name.

Handling a collection of modules:

save | s                          Save the current list of modules to a
                                  user defined "default" collection.
save | s            name          Save the current list of modules to
                                  "name" collection.
reset                             The same as "restore system"
restore | r                       Restore modules from the user's
                                  "default" or system default.
restore | r         name          Restore modules from "name" collection.
restore             system        Restore module state to system defaults.
savelist                          List of saved collections.
describe | mcc      name          Describe the contents of a module
                                  collection.
disable             name          Disable (i.e. remove) a collection.

Deprecated commands:

getdefault          [name]        load name collection of modules or
                                  user's "default" if no name given.
                                  ===> Use "restore" instead <====
setdefault          [name]        Save current list of modules to name if
                                  given, otherwise save as the default
                                  list for you the user.
                                  ===> Use "save" instead. <====

Miscellaneous sub-commands:

is-loaded           modulefile    return a true status if module is loaded
is-avail            modulefile    return a true status if module can be
                                  loaded
show                modulefile    show the commands in the module file.
use [-a]            path          Prepend or Append path to MODULEPATH.
unuse               path          remove path from MODULEPATH.
tablelist                         output list of active modules as a lua
                                  table.

Important Environment Variables:

LMOD_COLORIZE                     If defined to be "YES" then Lmod prints
                                  properties and warning in color.

Lmod Web Sites

Documentation:    https://lmod.readthedocs.org
GitHub:           https://github.com/TACC/Lmod
SourceForge:      https://lmod.sf.net
TACC Homepage:    https://www.tacc.utexas.edu/research-development/tacc-projects/lmod
To report a bug please read https://lmod.readthedocs.io/en/latest/075_bug_reporting.html

Robert McLay mclay@tacc.utexas.edu

2026-08-03 perl v5.42.2