How do I use various software packages on Bucknell Linux systems?

Access to many applications and libraries is controlled by the modules utility. The module command allows you to easily manipulate your Linux environment to use various applications and programming libraries, sometimes including older or newer versions than the default. When you need to change your environment you simply load or unload modules. Here are some of the commands you’ll need.

List the software that’s available via the module command:

[username@linuxremote1 ~]$ module avail

------------------------- /usr/remote/etc/modulefiles --------------------------
arduino/2.3.2           mathematica/14.0       R/4.4.1               
arduino/2.3.6           mathematica/14.2.1     R/4.5.1               
arduino/2.3.8           mathematica/14.3       rats/2.4              
csd/2024.1              matlab/R2024a          riscv/2024-04-02      
csd/2025.1              matlab/R2024b          riscv/2025-07-30      
cuda/12.4.0             matlab/R2026a          rust/1.93.1           
cuda/12.8.1             node/22.22.2           sagemath/10.6         
cudnn/8.9.7.29_cuda12   node/24.15.0           sqlitebrowser/3.13.1  
cudnn/9.11.0.98_cuda12  ns-3/3.45              stellarium/24.1       
elixir/1.17.2           pari/2.15.5            stellarium/25.2       
elixir/1.18.4           pari/2.17.2            tex/2024              
erlang/27.0.1           pari/2.17.3            tex/2025              
erlang/28.0             pico-sdk/2.0.0         tex/2026              
gaussian/16.B.01        python/3.11            tmux/3.4              
gcc/11.4.0              python/3.11-acet116    tmux/3.5a             
gcc/14.1.0              python/3.11-dm26_more  unison/2.53.4         
gcc/15.1.0              python/3.12            unison/2.53.7         
gcc/16.1.0              python/3.12-acet116    vim/9.1               
gradle/8.7              python/3.12-csci365    webots/R2025A         
idl/9.0                 python/3.13            
java/21                 R/4.3.3                

------------------------ /usr/share/Modules/modulefiles ------------------------
dot  module-git  module-info  modules  null  use.own  

---------------------------- /usr/share/modulefiles ----------------------------
mpi/mpich-x86_64  mpi/openmpi-x86_64  

Key:
loaded  modulepath  auto-loaded  default-version  

List the software that’s currently loaded in your environment (NOTE: some software is loaded by default when you login to a Bucknell Linux system):

[username@linuxremote1 ~]$ module list
Currently Loaded Modulefiles:
 1) cuda/12.8.1              3) python/3.12   5) tmux/3.5a  
 2) cudnn/9.11.0.98_cuda12   4) tex/2025     

Key:
default-version  auto-loaded  

Load/add a software package into your environment:

[username@linuxremote1 ~]$ module load matlab/R2024b

You can also load the default version of a software package by dropping the version:

[username@linuxremote1 ~]$ module load matlab

Unload/remove a software package from your environment:

[username@linuxremote1 ~]$ module unload matlab/R2024b

Modules will prevent you from adding conflicting packages. For example, you’ll receive an error if you try to add two versions of Python to your environment. To change to a new version, either unload one version and load another or use the switch command:

[username@linuxremote1 ~]$ module list
Currently Loaded Modulefiles:
 1) cuda/12.8.1              3) python/3.12   5) tmux/3.5a  
 2) cudnn/9.11.0.98_cuda12   4) tex/2025     

Key:
default-version  auto-loaded 
[username@linuxremote1 ~]$ module switch python/3.11

To add modules to your Linux environment that will load every time you login, use:
(NOTE: only run the echo command once; then just use initadd to add additional modules):

[username@linuxremote1 ~]$ echo "module add null" >> ~/.bashrc
[username@linuxremote1 ~]$ module initadd node/22.22.2

(NOTE: if you use the tcsh shell, you’ll need to run echo “module add null” >> ~/.cshrc)

Likewise, you can remove commands from your initial environment using:

[username@linuxremote1 ~]$ module initrm node/22.22.2

For additional commands, run:

[username@linuxremote1 ~]$ module help