Skip to main content
Redhat Developers  Logo
  • AI

    Get started with AI

    • Red Hat AI
      Accelerate the development and deployment of enterprise AI solutions.
    • AI learning hub
      Explore learning materials and tools, organized by task.
    • AI interactive demos
      Click through scenarios with Red Hat AI, including training LLMs and more.
    • AI/ML learning paths
      Expand your OpenShift AI knowledge using these learning resources.
    • AI quickstarts
      Focused AI use cases designed for fast deployment on Red Hat AI platforms.
    • No-cost AI training
      Foundational Red Hat AI training.

    Featured resources

    • OpenShift AI learning
    • Open source AI for developers
    • AI product application development
    • Open source-powered AI/ML for hybrid cloud
    • AI and Node.js cheat sheet

    Red Hat AI Factory with NVIDIA

    • Red Hat AI Factory with NVIDIA is a co-engineered, enterprise-grade AI solution for building, deploying, and managing AI at scale across hybrid cloud environments.
    • Explore the solution
  • Learn

    Self-guided

    • Documentation
      Find answers, get step-by-step guidance, and learn how to use Red Hat products.
    • Learning paths
      Explore curated walkthroughs for common development tasks.
    • Guided learning
      Receive custom learning paths powered by our AI assistant.
    • See all learning

    Hands-on

    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.
    • Interactive labs
      Learn by doing in these hands-on, browser-based experiences.
    • Interactive demos
      Click through product features in these guided tours.

    Browse by topic

    • AI/ML
    • Automation
    • Java
    • Kubernetes
    • Linux
    • See all topics

    Training & certifications

    • Courses and exams
    • Certifications
    • Skills assessments
    • Red Hat Academy
    • Learning subscription
    • Explore training
  • Build

    Get started

    • Red Hat build of Podman Desktop
      A downloadable, local development hub to experiment with our products and builds.
    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.

    Download products

    • Access product downloads to start building and testing right away.
    • Red Hat Enterprise Linux
    • Red Hat AI
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Featured

    • Red Hat build of OpenJDK
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat Developer Toolset

    References

    • E-books
    • Documentation
    • Cheat sheets
    • Architecture center
  • Community

    Get involved

    • Events
    • Live AI events
    • Red Hat Summit
    • Red Hat Accelerators
    • Community discussions

    Follow along

    • Articles & blogs
    • Developer newsletter
    • Videos
    • Github

    Get help

    • Customer service
    • Customer support
    • Regional contacts
    • Find a partner

    Join the Red Hat Developer program

    • Download Red Hat products and project builds, access support documentation, learning content, and more.
    • Explore the benefits

Red Hat Software Collections: Why They're Awesome, and How to Use Them

August 19, 2016
Hemant Jain
Related topics:
Developer toolsLinux
Related products:
Red Hat Enterprise Linux

    Red Hat Software Collections can make your life as a programmer or admin immensely easier.

    Like death, taxes and zombies, dealing with different versions of software is something you just can't avoid. It's a nasty but necessary fact of life.

    Traditionally, when developers and system admins grapple with this issue, they have to sacrifice something. If you want to run the latest and greatest version of a web app, it might not support users with outdated browsers. If you install the newest beta release of Python so you can test development code, it might break Python scripts written for older releases. If you have a system with multiple users, you might want a different version of Ruby over another. And so on.

    Software Collections provide a solution to conundrums like these. They let you have your cake and eat it, too.

    In other (more technical) words, Software Collections make it possible to have multiple versions of the same software on the same system. You use a simple tool to tell the system which version to activate as needed.

    If that sounds awesome, it is. Keep reading for a more detailed explanation of how Software Collections work, and an overview of using them on your Red Hat system.

    Software Collections: What They're Not

    If you are currently thinking that Software Collections sound too good to be true, you might be assuming they just use virtualization or containers to have multiple versions of the same software running on the same system. Anybody could install different versions of a program inside a virtual machine atop the same host, of course. That's not a big deal.

    Software Collections don't rely on virtualization, or entail any of the resource or administrative overhead of hypervisors. They keep things lean and mean, yet provide a level of version flexibility that you would otherwise only be able to get through virtualization.

    You might also be wondering whether Software Collections are just a weird hack that lets you install multiple versions of the same package. Technically, you could do something like this (and maybe you already do if you need multiple versions of Python or PHP on the system, for instance) by modifying installation scripts and system directories in strange ways to accommodate multiple releases of the same binaries. But Software Collections don't require that kind of dirty work.

    Software Collections also won’t break yum or dnf. They're designed to play nicely with the package manager and prevent conflicts between packages.

    Software Collections: What They Are

    So what actually makes Software Collections tick?

    Essentially, they're special RPM packages that can be installed on the system and activated as needed using a special interface. With this approach, they don't conflict with or overwrite software installed by any other RPM packages that are designed to run normally.

    You can build Software Collection RPMs yourself either locally or via COPR. This makes them a handy way of distributing apps to users who want to be able to switch between different versions of your software easily. It also simplifies the process of running multiple versions of the same app on your own systems for testing purposes.

    Using Software Collections

    If you just want to use Software Collections, though, you don't have to know much about building packages. You just need to enable the Software Collections repositories on your system, then download, install and activate whichever packages you want.

    To complete the first step on RHEL, run the </span><span style="font-weight:400;">subscription-manager-gui tool and use it to enable the </span><span style="font-weight:400;">rhel-server-rhscl-7-rpms and </span><span style="font-weight:400;">rhel-7-server-optional-rpms repositories. (If you don't see these repositories listed, they're likely not included in your RHEL subscription.)

    You could also do that from the CLI with:

    # subscription-manager repos --enable rhel-server-rhscl-7-rpms

    After this, you simply use yum to install whichever Software Collections package you wish from the repositories you enabled. For example, to install the package for MongoDB 2.6 (called rh-mongodb26), run:

    # yum install rh-mongodb26

    Lastly, you use the tool scl to activate your new package. For example, this command would activate the rh-mongodb26 package to run in a Bash terminal:

    # scl enable rh-mongodb26 bash

    That's all there is to it. Now, you can run the MongoDB 2.6 software you installed in a terminal just as you would a normal application, using a command like:

    # service rh-mongodb26-mongod start

    Of course, none of this will impact any other version of MongoDB that you have installed on your system. And that's the real beauty.

    Further Reading

    For all of the details on using Software Collections, you can check out the RHSCL documentation online. The RHSCL 2.2 Release Notes have a list of the collections available from Red Hat.

    One last tip: If you're wondering how to make Software Collections persist through reboots, here's your answer.

    Featured image source: harmonycentral.com

    About Hemant Jain

    Hemant Jain is the founder and owner of Rapidera Technologies, a full service software development shop. He and his team focus a lot on modern software delivery techniques and tools. Prior to Rapidera he managed large scale enterprise development projects at Autodesk and Deloitte.

     

    Editor's Note: developers.redhat.com has get started guides for Software Collections that take you up to "Hello, World" and answer some of the frequently asked questions.

    Last updated: November 1, 2023

    Recent Posts

    • Protect data offloaded to GPU-accelerated environments with OpenShift sandboxed containers

    • Case study: Measuring energy efficiency on the x64 platform

    • How to prevent AI inference stack silent failures

    • Preventing GPU waste: A guide to JIT checkpointing with Kubeflow Trainer on OpenShift AI

    • How to manage TLS certificates used by OpenShift GitOps operator

    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Platforms

    • Red Hat AI
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Build

    • Developer Sandbox
    • Developer tools
    • Interactive tutorials
    • API catalog

    Quicklinks

    • Learning resources
    • E-books
    • Cheat sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site status dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2026 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Chat Support

    Please log in with your Red Hat account to access chat support.