Various notes on CentOS and Redhat Enterprise Linux (RHEL).

Extra Packages for Enterprise Linux (EPEL)

Information about EPEL: https://fedoraproject.org/wiki/EPEL

   1 yum install -y epel-release yum-utils
   2 # Enable testing repository
   3 yum-config-manager --enable epel-testing

Inline with Upstream Stable (IUS) at https://ius.io/ is typically much more up-to-date. It automatically will pull in epel-release as a dependency.

   1 yum install -y https://centos6.iuscommunity.org/ius-release.rpm

Packages like python35u-pip, etc will be available.

Software Collections

Software Collections is another Redhat-supported project for installing newer software on older enterprise distributions. See https://www.softwarecollections.org/en/ for more information

Redhat's Developer Toolset (see CheatSheet/Gcc) is available as a Software Collection, and apparently is the preferred way to use it.

For example, Redhat-supplied Python 3.5 w/ pip:

   1 yum install -y centos-release-scl-rh
   2 yum install -y rh-python35 rh-python35-python-pip
   3 source scl_source enable rh-python35

TODO: Find documentation on scl command.

https://github.com/sclorg/rhscl-dockerfiles has a bunch of examples on using SCLs with Docker.

https://github.com/openshift/source-to-image uses SCL and Docker.

https://github.com/sclorg/s2i-python-container/blob/master/3.5/Dockerfile is interesting.

SamatsWiki: CentOS (last edited 2017-04-25 22:58:38 by SamatJain)