Package managers
The ways to fill a PREFIX of your own: modules, conda and mamba, pixi, containers and Spack, which one for what, and each in a batch job.
This section goes through the package managers you can use on a cluster without sudo, starting with which one to reach for, and then each of them in turn: the modules the sysadmins provide, conda and pixi, which is where I’d recommend most of your software comes from, and containers and Spack for what those can’t do.
| Title | Description |
|---|---|
| Which package manager? | Modules, conda and mamba, pixi, containers and Spack side by side: what each gives you, whether it is prebuilt or built from source, how you reproduce it, when to reach for it, and which to try first. |
| Modules | The software the sysadmins installed for you: how to find it, what loading a module does, loading it in a batch job, and mixing modules with your own environments. |
| Conda and mamba | Why conda, why conda-forge rather than Anaconda’s channels, how to install miniforge, and how to use an environment in a batch job. |
| Pixi | Project-centric environments from conda-forge, with a lockfile per platform and a built-in task runner, and how to use one in a batch job. |
| Containers | Apptainer on an HPC: running a Docker image, building your own image from a definition file, the options a batch job needs, and what a container does not bring with it. |
| Spack | Building compiled software from source, for the machine you run on, with Spack: variants and externals, a Spack environment from start to finish, and building on the kind of node you will run on. |
No matching items