In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article shows you how to enable the software set Software Collections on CentOS, the content is concise and easy to understand, it will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
Red Hat Enterprise linux (RHEL) and its community offshoot, CentOS, offer a 10-year lifecycle, which means that each version of RHEL/CentOS provides up to 10 years of security updates. Although such a long life cycle provides enterprise users with much-needed system compatibility and reliability, there is also a drawback: as the underlying RHEL/CentOS version approaches the end of the life cycle, core applications and runtime environments become obsolete. For example, CentOS 6.5, whose life cycle ends on November 30, 2020, carries Python 2.6.6 and MySQL 5.1.73, which are very old by today's standards.
On the other hand, trying to manually upgrade the development tool chain and runtime environment on RHEL/CentOS has the potential to crash the system unless all dependencies are resolved correctly. In general, manual upgrades are not recommended unless you know what you are doing.
Software Collections (SCL) sources have emerged to help solve this problem under RHEL/CentOS. SCL was created to provide RHEL/CentOS users with a way to easily and securely install and use multiple (and possibly newer) versions of the application and runtime environment without messing up the system. In contrast, there are third-party sources that can cause conflicts between installed packages.
The SCL of * * provides:
◆ Python 3.3,2.7
◆ PHP 5.4
◆ Node.js 0.10
◆ Ruby 1.9.3
◆ Perl 5.16.3
◆ MariaDB and MySQL 5.5
◆ Apache httpd 2.4.6
For the rest of this tutorial, I'll show you how to configure the SCL source and how to install and enable packages in SCL.
Configure SCL Feed
SCL is available for CentOS 6.5 and newer versions. To configure the SCL source, simply execute:
$sudo yum install centos-release-SCL
To enable and run applications in SCL, you also need to install the following packages:
$sudo yum install scl-utils-build
Execute the following command to view a complete list of available packages in SCL:
$yum-disablerepo= "*"-enablerepo= "scl" list available
Install and enable packages from SCL
Now that you have configured SCL, you can proceed and install the package from SCL.
You can search for packages in SCL:
$yum-disablerepo= "*"-enablerepo= "scl" list available
Let's assume that you want to install Python 3.3.
Go ahead, use the yum installation as you would normally install the package:
$sudo yum install python33
You can view a list of packages installed from SCL at any time, just execute:
$scl-list python33
One of the advantages of SCL is that the packages installed in it will not overwrite any system files and are guaranteed not to cause conflicts with other libraries and applications in the system.
For example, if you check the default python version after installing the python33 package, you will find that the default version has not changed:
$python-- version Python 2.6.6
If you want to use an installed SCL package, you need to use the scl command to explicitly enable it in each command. (LCTT translation note: which command you want to use the package in SCL, you have to execute the command through the scl command)
$scl enable
For example, to enable the python33 package for the python command:
$scl enable python33 'python-- version' Python 3.3.2
If you want to execute multiple commands when the python33 package is enabled, you can create a SCL-enabled bash session as follows:
$scl enable python33 bash
In this bash session, the default python will be switched to version 3.3 until you type exit to exit the session.
In short, SCL is a bit like Python's virtual environment, but more generic because you can enable / disable SCL sessions for far more applications than Python.
The above is how to enable the software set Software Collections on CentOS. Have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.