HP XC System Software Administration Guide Version 2.1

13
Managing Modulefiles
This section describes how to load, unload, an d ex amine modulefiles.
13.1 Managing Modulefiles
Modulefiles provide a mechanism for accessing software commands and tools, particularly for
third-party software. The HP X C System Software does no t use modules for system-level
manipulation.
A modulefile co ntains the information that alters or sets shell environment variables, such as
PATH and MANPATH. So me modulefiles are provided with the HP XC System Softw are and are
available for you to lo ad. A modulefile must be loaded before it changes the users environment.
See the HP XC System Software Use
r’s Guide for information on creating modulefiles and
loading default modulefiles.
The module command features keyw ords that enable you to load, unload, and list m odu les, as
described here.
•Usetheload keyw ord to load a module:
# module load package-name
•Usethelist keyword to list all load ed modules:
Be sure to unload a mod ule before loading ano ther to help av oid m odule version ing
conflicts. See the HP XC System Software Users Guide for additional info rm ation.
# module list
•Usetheavail keyword to list all loaded or unloaded modules:
# module avail
•Usetheunload keyword to unlo
ad a module:
# module unload package-name
Refer to the HP XC System Software Users Guide for more information about modulefiles.
________________________ Notes ________________________
Installing a package in a non
default location means that y ou must update the
corresponding modulefile;
you might need to ed it t he PATH and MANPATH
environment variables. Ot
her changes are based on the software package and
its dependencies.
If you have installed a variant of the package, you might need to create a parallel
modulefile specifically for the v ari ant. For example, you might have a standard
application that you need to keep separate from a beta version of the same
application; in this case, you would set up a parallel mo dulefile and adjust it
accordingly.
Managing Modulefiles 13-1