Install

SingularityCE is generally not available in most package managers (e.g. not available on Ubuntu via apt nor apt-get) and usually requires to be compiled from source.

From source

The broad idea is the following:

  1. Install dependencies

  2. Install recent Go version from official binaries

  3. Download SingularityCE source code

  4. Compile SingularityCE

  5. Install compiled SingularityCE as root

See also

For more information: SingularityCE - Quick Installation Steps.

From releases

Some releases are however available on GitHub: SingularityCE GitHub releases for some Linux distributions but not much documentation is available regarding this topic. These releases might also require a recent Go version for various dependency reasons.

Nix however does provide a singularity package if needed.
If using Nix some options might need some tweaking.

Note

On the contrary Apptainer usually is available as pre-built packages.

See Apptainer - Install from pre-built packages for more information.

If using Nix: see Apptainer - Non standard environments for more information.