wget

rpm -ivh chl-release-5-3.noarch.rpm

yum clean all

yum -y install python26

 

centos yum 升级ruby 1.8.6

centos 64位:

$ sudo rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
$ sudo rpm
-Uvh http://download.elff.bravenet.com/5/x86_64/elff-release-5-3.noarch.rpm
$ sudo yum install ruby ruby
-shadow ruby-ri ruby-rdoc gcc gcc-c++ ruby-devel -y
$ ruby
-
v
ruby
1.8.6 (2010-02-05 patchlevel 399) [x86_64-linux]

centos 32位:

$ sudo rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
$ sudo rpm
-Uvh http://download.elff.bravenet.com/5/i386/elff-release-5-3.noarch.rpm
$ sudo yum install ruby ruby
-shadow ruby-ri ruby-rdoc gcc gcc-c++ ruby-devel -y
$ ruby
-v
 

转: