How To Install singularity on CentOS 8
Introduction
In this tutorial we learn how to install singularity
on CentOS 8.
What is singularity
Singularity provides functionality to make portable containers that can be used across host environments.
We can use yum
or dnf
to install singularity
on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install singularity.
Install singularity on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install singularity
using dnf
by running the following command:
sudo dnf -y install singularity
Install singularity on CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install singularity
using yum
by running the following command:
sudo yum -y install singularity
How To Uninstall singularity on CentOS 8
To uninstall only the singularity
package we can use the following command:
sudo dnf remove singularity
singularity Package Contents on CentOS 8
/etc/bash_completion.d
/etc/bash_completion.d/singularity
/etc/singularity
/etc/singularity/capability.json
/etc/singularity/cgroups/cgroups.toml
/etc/singularity/ecl.toml
/etc/singularity/global-pgp-public
/etc/singularity/network/00_bridge.conflist
/etc/singularity/network/10_ptp.conflist
/etc/singularity/network/20_ipvlan.conflist
/etc/singularity/network/30_macvlan.conflist
/etc/singularity/network/40_fakeroot.conflist
/etc/singularity/nvliblist.conf
/etc/singularity/remote.yaml
/etc/singularity/rocmliblist.conf
/etc/singularity/seccomp-profiles/default.json
/etc/singularity/singularity.conf
/usr/bin/run-singularity
/usr/bin/singularity
/usr/lib/.build-id
/usr/lib/.build-id/05
/usr/lib/.build-id/05/bfea2e6235e9b0eca765ddad7e63f31f359d1f
/usr/lib/.build-id/18
/usr/lib/.build-id/18/096f70fbc5404dc61aa75ea660d7ee73e2b5a8
/usr/lib/.build-id/18/4392c98bbc25955ee5354bb2ac4a1d4659a296
/usr/lib/.build-id/2c
/usr/lib/.build-id/2c/bee13ed4ebfd38326e0bb0d0d94607accf5c86
/usr/lib/.build-id/43
/usr/lib/.build-id/43/3328bdfa402cace2f71dd16ee0f6bdfd5f82a1
/usr/lib/.build-id/47
/usr/lib/.build-id/47/60f614d11639cb8781edc256f9739c1b5f1644
/usr/lib/.build-id/4b
/usr/lib/.build-id/4b/6ddd68e7efb06a594e8e6fb98e99de8dd86e44
/usr/lib/.build-id/50
/usr/lib/.build-id/50/03aa59f1e9bf83ec9e472dcc0178f6df264b06
/usr/lib/.build-id/6a
/usr/lib/.build-id/6a/65fac5516a94ec788afb6e7d59ef541ca2b691
/usr/lib/.build-id/76
/usr/lib/.build-id/76/8e5e11ee0e4e4791dc14177dfbdb62a589b178
/usr/lib/.build-id/78
/usr/lib/.build-id/78/601f506baea80ba8cedb6afbc5149be3934e39
/usr/lib/.build-id/9a
/usr/lib/.build-id/9a/0bc315d49073ade1aa49bc40e071e1cff9f42c
/usr/lib/.build-id/a1
/usr/lib/.build-id/a1/10197917cce3b7c4819e64d5d56416a1da00ba
/usr/lib/.build-id/a8
/usr/lib/.build-id/a8/a93c775ff783eec6d1e9791dd41553614b0468
/usr/lib/.build-id/b9
/usr/lib/.build-id/b9/0e6487c396af43eb3cb41680dbf1929058a2d4
/usr/lib/.build-id/d1
/usr/lib/.build-id/d1/024865a9688706064b6b6ae577aa168930bb9d
/usr/lib/.build-id/e7
/usr/lib/.build-id/e7/85447cdca596ed0047b6ca9a21dd9da29b53f6
/usr/lib/.build-id/eb
/usr/lib/.build-id/eb/546f9101074a3005ca36f9bf08a1d4a427f38a
/usr/libexec/singularity
/usr/libexec/singularity/bin/starter
/usr/libexec/singularity/bin/starter-suid
/usr/libexec/singularity/cni/bandwidth
/usr/libexec/singularity/cni/bridge
/usr/libexec/singularity/cni/dhcp
/usr/libexec/singularity/cni/firewall
/usr/libexec/singularity/cni/flannel
/usr/libexec/singularity/cni/host-device
/usr/libexec/singularity/cni/host-local
/usr/libexec/singularity/cni/ipvlan
/usr/libexec/singularity/cni/loopback
/usr/libexec/singularity/cni/macvlan
/usr/libexec/singularity/cni/portmap
/usr/libexec/singularity/cni/ptp
/usr/libexec/singularity/cni/static
/usr/libexec/singularity/cni/tuning
/usr/libexec/singularity/cni/vlan
/usr/share/man/man1/singularity-build.1.gz
/usr/share/man/man1/singularity-cache-clean.1.gz
/usr/share/man/man1/singularity-cache-list.1.gz
/usr/share/man/man1/singularity-cache.1.gz
/usr/share/man/man1/singularity-capability-add.1.gz
/usr/share/man/man1/singularity-capability-avail.1.gz
/usr/share/man/man1/singularity-capability-drop.1.gz
/usr/share/man/man1/singularity-capability-list.1.gz
/usr/share/man/man1/singularity-capability.1.gz
/usr/share/man/man1/singularity-config-fakeroot.1.gz
/usr/share/man/man1/singularity-config-global.1.gz
/usr/share/man/man1/singularity-config.1.gz
/usr/share/man/man1/singularity-delete.1.gz
/usr/share/man/man1/singularity-exec.1.gz
/usr/share/man/man1/singularity-inspect.1.gz
/usr/share/man/man1/singularity-instance-list.1.gz
/usr/share/man/man1/singularity-instance-start.1.gz
/usr/share/man/man1/singularity-instance-stop.1.gz
/usr/share/man/man1/singularity-instance.1.gz
/usr/share/man/man1/singularity-key-export.1.gz
/usr/share/man/man1/singularity-key-import.1.gz
/usr/share/man/man1/singularity-key-list.1.gz
/usr/share/man/man1/singularity-key-newpair.1.gz
/usr/share/man/man1/singularity-key-pull.1.gz
/usr/share/man/man1/singularity-key-push.1.gz
/usr/share/man/man1/singularity-key-remove.1.gz
/usr/share/man/man1/singularity-key-search.1.gz
/usr/share/man/man1/singularity-key.1.gz
/usr/share/man/man1/singularity-oci-attach.1.gz
/usr/share/man/man1/singularity-oci-create.1.gz
/usr/share/man/man1/singularity-oci-delete.1.gz
/usr/share/man/man1/singularity-oci-exec.1.gz
/usr/share/man/man1/singularity-oci-kill.1.gz
/usr/share/man/man1/singularity-oci-mount.1.gz
/usr/share/man/man1/singularity-oci-pause.1.gz
/usr/share/man/man1/singularity-oci-resume.1.gz
/usr/share/man/man1/singularity-oci-run.1.gz
/usr/share/man/man1/singularity-oci-start.1.gz
/usr/share/man/man1/singularity-oci-state.1.gz
/usr/share/man/man1/singularity-oci-umount.1.gz
/usr/share/man/man1/singularity-oci-update.1.gz
/usr/share/man/man1/singularity-oci.1.gz
/usr/share/man/man1/singularity-overlay-create.1.gz
/usr/share/man/man1/singularity-overlay.1.gz
/usr/share/man/man1/singularity-plugin-compile.1.gz
/usr/share/man/man1/singularity-plugin-create.1.gz
/usr/share/man/man1/singularity-plugin-disable.1.gz
/usr/share/man/man1/singularity-plugin-enable.1.gz
/usr/share/man/man1/singularity-plugin-inspect.1.gz
/usr/share/man/man1/singularity-plugin-install.1.gz
/usr/share/man/man1/singularity-plugin-list.1.gz
/usr/share/man/man1/singularity-plugin-uninstall.1.gz
/usr/share/man/man1/singularity-plugin.1.gz
/usr/share/man/man1/singularity-pull.1.gz
/usr/share/man/man1/singularity-push.1.gz
/usr/share/man/man1/singularity-remote-add-keyserver.1.gz
/usr/share/man/man1/singularity-remote-add.1.gz
/usr/share/man/man1/singularity-remote-list.1.gz
/usr/share/man/man1/singularity-remote-login.1.gz
/usr/share/man/man1/singularity-remote-logout.1.gz
/usr/share/man/man1/singularity-remote-remove-keyserver.1.gz
/usr/share/man/man1/singularity-remote-remove.1.gz
/usr/share/man/man1/singularity-remote-status.1.gz
/usr/share/man/man1/singularity-remote-use.1.gz
/usr/share/man/man1/singularity-remote.1.gz
/usr/share/man/man1/singularity-run-help.1.gz
/usr/share/man/man1/singularity-run.1.gz
/usr/share/man/man1/singularity-search.1.gz
/usr/share/man/man1/singularity-shell.1.gz
/usr/share/man/man1/singularity-sif-add.1.gz
/usr/share/man/man1/singularity-sif-del.1.gz
/usr/share/man/man1/singularity-sif-dump.1.gz
/usr/share/man/man1/singularity-sif-header.1.gz
/usr/share/man/man1/singularity-sif-info.1.gz
/usr/share/man/man1/singularity-sif-list.1.gz
/usr/share/man/man1/singularity-sif-new.1.gz
/usr/share/man/man1/singularity-sif-setprim.1.gz
/usr/share/man/man1/singularity-sif.1.gz
/usr/share/man/man1/singularity-sign.1.gz
/usr/share/man/man1/singularity-test.1.gz
/usr/share/man/man1/singularity-verify.1.gz
/usr/share/man/man1/singularity-version.1.gz
/usr/share/man/man1/singularity.1.gz
/var/singularity
/var/singularity/mnt
/var/singularity/mnt/session
References
Summary
In this tutorial we learn how to install singularity
on CentOS 8 using yum and dnf.