# Flight Environment

# Viewing Available Ecosystems

Various package-ecosystems are available for managing software on your research environment. These can be viewed by using the env subcommand:

flight env avail

# Creating a Local Ecosystem

A local ecosystem is only available to the user that creates it. All of the packages and libraries are installed to the users home directory.

To install a package ecosystem, use the create command as follows (replacing easybuild with your desired package ecosystem):

flight env create easybuild

Once a package ecosystem has been installed, it needs to be activated for the session to be able to manage software with it:

[flight@chead1 (mycluster1) ~]$ flight env activate easybuild
<easybuild> [flight@chead1 (mycluster1) ~]$

# Creating a Global Ecosystem

A global ecosystem is available to all users on the system. All of the packages and libraries are installed to a shared storage directory. The global directories can be configured in /opt/flight/opt/env/etc/config.yml with the global_depot_path: and global_build_cache_path keys.

To install a global package ecosystem, use the create command with the global option flag:

flight env create -g easybuild

Once the global ecosystem has been installed, it needs to be activated for the session to be able to monitor software with it:

[root@chead1 (mycluster1) ~]$ flight env activate easybuild@global
<easybuild@global> [flight@chead1 (mycluster1) ~]$

# Custom Ecosystem Names

When installing an ecosystem, a custom alias can be added by appending @mycustomname to the end of creation command. For example, to create a local gridware installation with the alias test:

flight env create easybuild@test

To activate this environment, the alias will need to be specified in the activation command:

[flight@chead1 (mycluster1) ~]$ flight env activate easybuild@test
<easybuild@test> [flight@chead1 (mycluster1) ~]$