Use SCL packages without bash

The recommended way to run SCL packages is by using the scl command and starting a new session like this:

scl enable ruby193 bash

Sometimes though, you don’t want to start a new session, just load the package into the current session. To do this, you just need to source the “enable” file in each package. Here’s how to do it with ruby:

source /opt/rh/ruby193/enable

Michael is a polyglot software engineer, committed to reducing complexity in systems and making them more predictable. Working with a variety of languages and tools, he shares his technical expertise to audiences all around the world at user groups and conferences. You can follow @mheap on Twitter

Thoughts on this post

Leave a comment?

Leave a Reply