Upgrade CentOS 7 to Alma 8 While Keeping SingularityCE Updated

By Staff
Overview
With CentOS 7 reaching end of life on June 30th, 2024 and CentOS 8 already discontinued in favor of CentOS Stream, users of open source SingularityCE might find themselves in a situation where a migration to another open source operating system is necessary. While there are several options to choose, whether it be Redhat Enterprise Linux, Alma Linux, Rocky Linux, Ubuntu or a variety of others to choose, here is a sample migration from CentOS 7 to Alma Linux 8 along with ensuring installation of the corresponding Singularity CE packages.
This blog post will guide you through the process of migrating to the AlmaLinux 8 distribution. In order to achieve success, the Alma project recommends using their Elevate tool to ensure a smooth transition.
Step 1: Patch and Update
In CentOS 7, we’ll use the yum package manager to install the latest updates including SingularityCE. If you have yet to install SingularityCE on CentOS 7, please read this detailed blog post to install SingularityCE from the RedHat EPEL repository. As of this writing, SingularityCE 3.11 is the latest version in EPEL.
To install the latest patches, run the following command:
$ sudo yum update
$ source /etc/os-release && echo $PRETTY_NAME
CentOS Linux 7 (Core)
$ singularity --version
singularity-ce version 3.11.5-1.el7
Step 2: Install the Elevate Repository
To enable the Alma ELevate migration tool, let’s enable the Elevate repository by running the following command:
$ sudo yum install -y \ http://repo.almalinux.org/elevate/elevate-release-latest-el7.noarch.rpm

Step 3: Install Leapp Utility
Leapp is a helper utility that assists with the migration of any previous version of Red Hat Enterprise Linux distribution to version 8. To migrate from CentOS 7 to AlmaLinux 8, install the following packages:
$ sudo yum install -y leapp-upgrade leapp-data-almalinux yum-utils

Step 4: Migrate to AlmaLinux 8
Once the leapp utility is installed, run a pre-flight upgrade by issuing the following command:
$ sudo leapp upgrade


$ sudo package-cleanup --oldkernels --count=1

$ sudo echo PermitRootLogin yes | sudo tee -a /etc/ssh/sshd_config
$ sudo leapp answer --section remove_pam_pkcs11_module_check.confirm=True
After fixing all the issues, we can return to the migration process:
$ sudo leapp upgrade

$ reboot

$ source /etc/os-release && echo $PRETTY_NAME
AlmaLinux 8.8 (Sapphire Caracal)
$ singularity --version
Singularity-ce version 3.11.5-1.el7
Step 5: Update the SingularityCE Package
Although SingularityCE 3.11 is verified, the “el7” package is still installed. To install the proper package for your operating system, upgrade the SingularityCE package with the following command:
$ sudo yum update -y singularity-ce
$ singularity --version
singularity-ce version 3.11.5-1.el8
Conclusion
Migrating from CentOS 7 to AlmaLinux 8 is a crucial step for those seeking a reliable and secure open-source alternative to CentOS7. Proper planning and a clear understanding of the migration process and resources can make this transition smooth and beneficial, ensuring your systems remain updated and secure. With awareness of the essential steps and important considerations above, you can ensure a successful transition.
Join Our Mailing List
Recent Posts
Related Posts
Introducing CDI Support to SingularityCE 4.0
With the ever increasing adoption of AI techniques in scientific research, as well as growing use of accelerators for traditional numerical workloads, easy access to GPUs and other devices in HPC environments is critical.The 4.0 release of the SingularityCE container...
Transforming Alzheimer’s Research with Singularity Containers: A Milestone in Scientific Reproducibility
Addressing The Grand Challenges of Our Time Through Singularity Container TechnologyAt Sylabs, our mission and vision aren't just statements on a wall, they're an ethos we embody daily. We're committed to facilitating cutting-edge research that seeks to address...
Using Singularity Container Services Registry for CI/CD Workflows
IntroductionOpen Container Initiative (OCI) registries offer extensibility and customization options. Users can define custom metadata, annotations, and labels for images, which aids in better categorization and organization. Furthermore, registries can be integrated...