Maintaining Open Source Singularity Since 2017
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
Creating New Levels of Security with Containers and Confidential Computing
Data breaches are becoming increasingly common. It's more important than ever to find robust solutions that protect sensitive information. Recent high-profile data breaches underscore the necessity for fresh approaches to data protection. Breaches like these are...
OCI-SIF Container Images: Unraveling Their Features and Benefits
Among the container industry, OCI (Open Container Initiative) and SIF (Singularity Image Format) stand out as two prominent formats, each offering unique features and benefits. Understanding their distinct characteristics is crucial for HPC developers seeking optimal...
Ensuring Singularity Enterprise Continuity: Crafting a Disaster Recovery Plan
In the dynamic world of IT operations, disaster recovery procedures stand as the secret weapon, quietly ensuring the resilience and continuity of businesses. Whether it's a natural disaster, a cyberattack, or a hardware failure, having a robust disaster recovery plan...