Use SCL packages without bash

01 Jun 2015 in TIL

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

bash
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:

bash
source /opt/rh/ruby193/enable