centos安装python2.7

原标题:「centos6默认python2.6升级2.7」

本文介绍CentOS 6.3从自带的Pyhon版本是2.6升级到2.7.6的方法。

因为CentOS系统中旧版本的Python已被深度依赖,所以不能卸载原有的Python,只能全新安装。

1.下载Pyhon,选择下载Gzipped source tar ball (2.7.6) (sig)

网址https://www.python.org/download/releases/2.7.6

2.解压安装,命令如下

tar -xvf Python-2.7.6.tgz

cd Python-2.7.6

./configure –prefix=/usr/local/python2.7

make

make install

3.创建链接来使系统默认python变为python2.7

ln -fs /usr/local/python2.7/bin/python2.7 /usr/bin/python

4.查看Python版本

python –V

5.修改yum配置(否则yum无法正常运行)

vi /usr/bin/yum

将第一行的#!/usr/bin/python修改为系统原有的python版本地址#!/usr/bin/python2.6

 

至此CentOS6.3系统Python已成功升级至2.7.6版本。

【摘自:http://www.centoscn.com/image-text/config/2015/0325/5005.html】

How to Install Subversion (SVN) 1.9 on CentOS/RHEL 7/6/5

Thanks to Wandisco, which is maintaining the rpm packages for latest Subversion version. This article will help you to install subversion 1.9 ( svn client ) on CentOS/RHEL 7/6/5 Systems. If you want to configure Subversion server visit this article.

Step 1: Setup Yum Repository

Firstly we need to configure yum repository in our system. Create a new repo file/etc/yum.repos.d/wandisco-svn.repo and add following content as per your operating system version.

Step 2: Install Subversion 1.9

Before installing latest package remove existing subversion packages from system to remove conflict.

Now install latest available Subversion package using yum command line package manager utility.

Step 3: Verify Subversion Version

At this stage you have successfully install Subversion client on your system. Lets use following command to verify version of svn client.

References:

1. http://opensource.wandisco.com/

2.http://tecadmin.net/install-svn-1-9-on-centos/