Difference between revisions of "Software Collections"
(Adds example) |
|||
(One intermediate revision by the same user not shown) | |||
Line 6: | Line 6: | ||
With Software Collections, you can build and concurrently install multiple versions of the same software components on your system. Software Collections have no impact on the system versions of the packages installed by any of the conventional RPM package management utilities. | With Software Collections, you can build and concurrently install multiple versions of the same software components on your system. Software Collections have no impact on the system versions of the packages installed by any of the conventional RPM package management utilities. | ||
+ | |||
+ | |||
+ | == Example == | ||
+ | Following [https://developerblog.redhat.com/2013/02/14/setting-up-django-and-python-2-7-on-red-hat-enterprise-6-the-easy-way/ this article], I installed Python 2.7 on an old RHEL 6.7 box. | ||
+ | <source lang="bash"> | ||
+ | sudo sh -c 'wget -qO- http://people.redhat.com/bkabrda/scl_python27.repo >> /etc/yum.repos.d/scl.repo' | ||
+ | sudo yum install python27 | ||
+ | scl enable python27 bash | ||
+ | python -V | ||
+ | </source> | ||
+ | For whatever reason, I wasn't getting a 'new' python in my bash shell, so I su'd to root where python 2.7 and 2.7.5 were available?? | ||
== More == | == More == | ||
Line 13: | Line 24: | ||
* [https://www.softwarecollections.org/en/ Software Collections] website | * [https://www.softwarecollections.org/en/ Software Collections] website | ||
− | * [http://developerblog.redhat.com/category/software-collections-2/ Software Collections Developer Blog] | + | * [http://developerblog.redhat.com/category/software-collections-2/ Software Collections Developer Blog] |
* [https://www.youtube.com/watch?v=0lcK8L3XDek video] | * [https://www.youtube.com/watch?v=0lcK8L3XDek video] | ||
* [https://docs.fedoraproject.org/en-US/Fedora_Contributor_Documentation/1/html-single/Software_Collections_Guide/index.html Guide] | * [https://docs.fedoraproject.org/en-US/Fedora_Contributor_Documentation/1/html-single/Software_Collections_Guide/index.html Guide] | ||
Line 19: | Line 30: | ||
[[Category:System Administration]] | [[Category:System Administration]] | ||
− | + | [[Category:Python]] | |
− | [[Category: |
Latest revision as of 10:00, 30 November 2015
Intro[edit | edit source]
Software Collections are for installing multiple (newer) versions of software like Python or Perl than the version distributed with the RedHat Enterprise Linux (RHEL) distribution you have.
Software Collections is like the virtualenv
system for Python. So if you want Python 2.7 on your RHEL 6.x box, you can choose to use virtualenv for Python, or you can use Software Collections for Python and more (like Postgres, Nodejs, MariaDB, etc.).
With Software Collections, you can build and concurrently install multiple versions of the same software components on your system. Software Collections have no impact on the system versions of the packages installed by any of the conventional RPM package management utilities.
Example[edit | edit source]
Following this article, I installed Python 2.7 on an old RHEL 6.7 box.
sudo sh -c 'wget -qO- http://people.redhat.com/bkabrda/scl_python27.repo >> /etc/yum.repos.d/scl.repo'
sudo yum install python27
scl enable python27 bash
python -V
For whatever reason, I wasn't getting a 'new' python in my bash shell, so I su'd to root where python 2.7 and 2.7.5 were available??
More[edit | edit source]
This is a part of the Python deployments series