I followed the Software Collections Quick Start and I now have Python 3.5 installed. How can I make it always enabled in my ~/.bashrc
, so that I do not have to enable it manually with scl enable rh-python35 bash
?
Use the scl_source
feature.
Create a new file in /etc/profile.d/
to enable your collection automatically on start up:
$ cat /etc/profile.d/enablepython35.sh
#!/bin/bash
source scl_source enable python35
See How can I make a Red Hat Software Collection persist after a reboot/logout? for background and details.