通常我们都是通过ius源,使用yum方式安装新版的php/python/mysql等软件,目前网络上的教程都已经发生了变化,很多都不可用了,本文记录一下最新的yum方式安装python3.6,可以通过以下操作:
centos6:
# yum install https://repo.ius.io/ius-release-el6.rpm https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
# yum install python36u python36u-devel python36-pip
centos7:
# yum install https://repo.ius.io/ius-release-el7.rpm https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install python36u python36u-devel python36-pip

测试是否正常:
# yum install yum-utils
# yum-config-manager --enable ius-testing
检查结果:
Loaded plugins: fastestmirror
Repository epel is listed more than once in the configuration
================================================================================ repo: ius-testing ================================================================================
[ius-testing]
bandwidth = 0
base_persistdir = /var/lib/yum/repos/x86_64/6
baseurl = https://repo.ius.io/testing/6/x86_64/
cache = 0
cachedir = /var/cache/yum/x86_64/6/ius-testing
cost = 1000
enabled = 1
enablegroups = True
exclude = 
failovermethod = priority
ftp_disable_epsv = False
gpgcadir = /var/lib/yum/repos/x86_64/6/ius-testing/gpgcadir
gpgcakey = 
gpgcheck = True
gpgdir = /var/lib/yum/repos/x86_64/6/ius-testing/gpgdir
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-IUS-6
hdrdir = /var/cache/yum/x86_64/6/ius-testing/headers
http_caching = all
includepkgs = 
keepalive = True
mdpolicy = group:primary
mediaid = 
metadata_expire = 21600
metalink = 
mirrorlist = 
mirrorlist_expire = 86400
name = IUS for Enterprise Linux 6 - Testing - x86_64
old_base_cache_dir = 
password = 
persistdir = /var/lib/yum/repos/x86_64/6/ius-testing
pkgdir = /var/cache/yum/x86_64/6/ius-testing/packages
proxy = False
proxy_dict = 
proxy_password = 
proxy_username = 
repo_gpgcheck = False
retries = 10
skip_if_unavailable = False
ssl_check_cert_permissions = True
sslcacert = 
sslclientcert = 
sslclientkey = 
sslverify = True
throttle = 0
timeout = 30.0
username = 

12-17 04:49