Menu

Tree [4a63dd] main /
 History

HTTPS access


File Date Author Commit
 .github 2026-02-03 Xavier Delaruelle Xavier Delaruelle [0e6b60] install: add --disable-compressed-changelog option
 doc 2026-02-17 Xavier Delaruelle Xavier Delaruelle [924a33] doc: desc. MODULES_NON_EXPORTABLE_TAGS in man/c...
 init 2026-02-16 Xavier Delaruelle Xavier Delaruelle [3d7fca] init: add non_exportable_tags config to complet...
 lib 2026-01-11 Xavier Delaruelle Xavier Delaruelle [53eb83] ts: remove libtestutil-getgrgid
 script 2026-01-10 Xavier Delaruelle Xavier Delaruelle [176835] New year (2026) copyright mention update
 share 2026-01-21 Xavier Delaruelle Xavier Delaruelle [2db564] doc: add manual page for modulecmd(1) command
 tcl 2026-02-16 Xavier Delaruelle Xavier Delaruelle [175f98] Add non_exportable_tags configuration option
 testsuite 2026-02-17 Xavier Delaruelle Xavier Delaruelle [4a63dd] ts: add tests for non_exportable_tags
 .cirrus.yml 2025-12-05 Xavier Delaruelle Xavier Delaruelle [7c91be] cirrus: test FreeBSD 14.3 instead of 14.2
 .codespellrc 2026-02-03 Xavier Delaruelle Xavier Delaruelle [0e6b60] install: add --disable-compressed-changelog option
 .gitattributes 2023-06-01 Xavier Delaruelle Xavier Delaruelle [a1b82e] Use Hunspell spell checker instead of Aspell
 .gitignore 2026-02-03 Xavier Delaruelle Xavier Delaruelle [0e6b60] install: add --disable-compressed-changelog option
 .globalrc 2021-08-23 Xavier Delaruelle Xavier Delaruelle [32cdb1] install: add Makefile rules to build Gtags indexes
 .hunspell.en.dic 2026-02-15 Xavier Delaruelle Xavier Delaruelle [3400e1] doc: desc. TSC meeting in CONTRIBUTING/README/i...
 .readthedocs.yaml 2025-10-30 Xavier Delaruelle Xavier Delaruelle [b7ae3a] doc: generate PDF doc on RTD
 CODE_OF_CONDUCT.md 2025-12-02 Xavier Delaruelle Xavier Delaruelle [bf8696] doc: update CoC email address to report bad beh...
 CONTRIBUTING.rst 2026-02-15 Xavier Delaruelle Xavier Delaruelle [3400e1] doc: desc. TSC meeting in CONTRIBUTING/README/i...
 COPYING.GPLv2 2025-08-01 Xavier Delaruelle Xavier Delaruelle [3fb2e1] doc: update FSF address in GPLv2 license terms
 GOVERNANCE.rst 2026-01-21 Xavier Delaruelle Xavier Delaruelle [340314] doc: add Adrien Cotte as co-maintainer of the p...
 INSTALL-win.rst 2025-10-14 Xavier Delaruelle Xavier Delaruelle [79e806] doc: warn about MSVC x86 toolchain cmd name con...
 INSTALL.rst 2026-02-17 Xavier Delaruelle Xavier Delaruelle [aa3799] doc: desc. non_exportable_tags config in man/ch...
 MIGRATING.rst 2026-01-18 Xavier Delaruelle Xavier Delaruelle [7abe55] doc: desc. path_entry_reorder in MIGRATING
 Makefile 2026-02-06 Xavier Delaruelle Xavier Delaruelle [d359a5] install: add --enable-paginate configure option
 Makefile.inc.in 2026-02-06 Xavier Delaruelle Xavier Delaruelle [d359a5] install: add --enable-paginate configure option
 NEWS.rst 2026-02-17 Xavier Delaruelle Xavier Delaruelle [a28bed] doc: desc. non_exportable_tags in NEWS
 README.md 2026-02-15 Xavier Delaruelle Xavier Delaruelle [3400e1] doc: desc. TSC meeting in CONTRIBUTING/README/i...
 SECURITY.md 2025-07-31 Xavier Delaruelle Xavier Delaruelle [0dbe0f] Release of version 5.6.0
 codecov.yml 2021-02-06 Xavier Delaruelle Xavier Delaruelle [5d9c15] codecov: no notification before receiving the 5...
 configure 2026-02-06 Xavier Delaruelle Xavier Delaruelle [d359a5] install: add --enable-paginate configure option
 site.exp.in 2026-02-06 Xavier Delaruelle Xavier Delaruelle [d359a5] install: add --enable-paginate configure option
 siteconfig.tcl 2024-04-21 Xavier Delaruelle Xavier Delaruelle [2d6cfa] Make logged_events/logger config options lockable
 version.inc.in 2025-11-25 Xavier Delaruelle Xavier Delaruelle [6a1f31] Release of version 5.6.1

Read Me

Modules

Linux Build Status
Windows Build Status
FreeBSD/OS X/Linux Build Status
Coverage Status
Documentation Status
Packaging status
Bluesky
Matrix

Modules, provides dynamic modification of a user's environment

The Modules package is a tool that simplify shell initialization and
lets users easily modify their environment during the session with
modulefiles.

Each modulefile contains the information needed to configure the shell for
an application. Once the Modules package is initialized, the environment can
be modified on a per-module basis using the module command which interprets
modulefiles. Typically modulefiles instruct the module command to alter or
set shell environment variables such as PATH, MANPATH, etc. modulefiles may
be shared by many users on a system and users may have their own collection
to supplement or replace the shared modulefiles.

Modules can be loaded and unloaded dynamically and atomically, in an clean
fashion. All popular shells are supported, including bash, ksh, zsh, sh,
csh, tcsh, fish, cmd, pwsh, as well as some scripting languages such as tcl,
perl, python, ruby, cmake and r.

Modules are useful in managing different versions of applications. Modules
can also be bundled into meta-modules that will load an entire suite of
different applications.

Quick examples

Here is an example of loading a module on a Linux machine under bash.

$ module load gcc/12.4.0
$ which gcc
$ /usr/local/gcc/12.4.0/linux-x86_64/bin/gcc

Now we'll switch to a different version of the module

$ module switch gcc/14
$ which gcc
/usr/local/gcc/14.2.0/linux-x86_64/bin/gcc

And now we'll unload the module altogether

$ module unload gcc
$ which gcc
gcc not found

Now we'll log into a different machine, using a different shell (tcsh).

% module load gcc/14.2
% which gcc
/usr/local/gcc/14.2.0/linux-aarch64/bin/gcc

Note that the command line is exactly the same, but the path has
automatically configured to the correct architecture.

Getting things running

The simplest way to build and install Modules on a Unix system is:

$ ./configure
$ make
$ make install

To learn the details on how to install modules see INSTALL.txt (modules.readthedocs.io) for Unix
system or INSTALL-win.txt (modules.readthedocs.io) for Windows.

Requirements

  • Tcl >= 8.5

Documentation

See MIGRATING to get an overlook of the new functionalities introduced
by each released versions. NEWS provides the full list of changes added
in each version. The Changes document gives an in-depth view of the
modified behaviors and new features between major versions. You may also look
at the ChangeLog for the technical development details.

The doc directory contains both the paper and man pages describing the
user's and the module writer's usage. To generate the documentation files,
like the man pages (you need Sphinx >= 1.0 to build the documentation), just
type:

$ ./configure
$ make -C doc all

The following man pages are provided:

module(1), ml(1), modulecmd(1), envml(1), modulefile(5)

Test suite

Regression testing scripts are available in the testsuite directory (you
need DejaGnu to run the test suite):

$ ./configure
$ make test

Once modules is installed after running make install, you have the
ability to test this installation with:

$ make testinstall

Community

Modules is an open source project. Questions, discussion, and contributions
are welcome. You can get in contact with the Modules community via:

The project is also present on several social media platforms:

Contributing

Modules project welcomes contributions of all kinds! Before submitting an
issue or pull request, please take a moment to review our Contributing
guide
. It includes important information about issue reporting, coding
standards, etc.

Please note that Modules project has a Code of conduct. It ensures a
respectful and inclusive environment for all contributors. By participating in
the Modules community, you agree to abide by its rules.

Governance

Modules is part of the High Performance Software Foundation
within the Linux Foundation.

This project adheres to a Technical charter, which defines its
governance model, decision-making process, and long-term vision.

License

Modules is distributed under the GNU General Public License, either version 2
or (at your option) any later version (GPL-2.0-or-later). Read the file
COPYING.GPLv2 for details.

Authors

Modules current maintainers are:

  • Xavier Delaruelle, xavier.delaruelle@cea.fr
  • Adrien Cotte, adrien.cotte@asplus.fr

Many thanks go to the contributors of the Modules project.

Acknowledgments

We would like to express our gratitude to CEA for the resources and
funding provided to the project over the recent years.

The following people have notably contributed to Modules and Modules would not
be what it is without their contributions:

  • R.K. Owen
  • Kent Mein
  • Mark Lakata
  • Harlan Stenn
  • Leo Butler
  • Robert Minsk
  • Jens Hamisch
  • Peter W. Osel
  • John L. Furlan
MongoDB Logo MongoDB