Sourcing root for all users

I am a big fan of using environment-modules. This permits the user a quick way to see what is available and switch in various version as they need:

$ module avail       
-------------------- /usr/local/Modules/3.2.10/modulefiles ---------------------
dot                       module-info               root/6.09.02
geant4/10.03.p01          modules                   root/6.10.00
geant4/10.03.p02(default) root/5.34.36              root/6.10.02(default)
macports                  root/6.08.06              use.own
$ module load root
$ module list
Currently Loaded Modulefiles:
  1) macports       2) root/6.10.02
$ module switch root/6.10.02 root/5.34.36
$ module list
Currently Loaded Modulefiles:
  1) macports       2) root/5.34.36
$ module unload root
$ module list
Currently Loaded Modulefiles:
  1) macports
$ module load root/6.10.00
$ module list
Currently Loaded Modulefiles:
  1) macports       2) root/6.10.00
1 Like