Latest News: Linux shell script to change you ssh port

upgrade you python to 3.5.2 on CentOS 7 and fix the yum

Uncategorized willing 573View(s) 0Comment

CentOS7use the python2.7.5 as default, you should pay acctention to two thing when upgrading the  python to 3.5.2

  1. update the python link in the default sysytem
  2. fix the yum

 

A. install the  python 3.5.2

B. install the python

C.  you will see this as below

D. update the python link in the default sysytem

move and keep the old one for yum

make link to the system default python path

you will see this below if success change defaule python to 3.5.2

E. you will find that yum is broken

you can fix it by follow this:

vim /usr/bin/yum

change:

to

F. All done

 

Please give credit to the original author when you use it elsewhere: VPS List Agent » upgrade you python to 3.5.2 on CentOS 7 and fix the yum

Login to post a comment!