set a default version to an environment module

Context: “The environment modules package provides for an easy dynamic modification of a user’s environment via modulefiles. which typically instruct the module command to alter or set shell environment variables such as PATH, MANPATH, etc. as well as define aliases over a variety of shells.”

Reference: modules.sourceforge

When you type “module av PKGNAME” you get a list of available version for the PKGNAME. You may see the (default) one.

By default, the highest lexicographically sorted modulefile under the directory is set as the default. However, you can change this behaviour by creating a .version file in that directory which has a format like the following

This entry was posted in Linux and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published.