当前位置:首页 > 操作系统 > Linux

Linux使用wget、安装Python

原文:https://blog.csdn.net/ghost_chou/article/details/81905302

1.指定需要安装的目录或创建并访问到该选择的目录下。

        mkdir /data/terrace/server/python

    
  • 1   mkdir /data/terrace/server/python

2.在线下载Python.rpm

        
  wget http://mirrors.ustc.edu.cn/centos/6/os/x86_64/Packages/python-2.6.6-66.el6_8.x86_64.rpm
 
 wget http://mirrors.ustc.edu.cn/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm
 
wget http://mirrors.ustc.edu.cn/centos/6/os/x86_64/Packages/python-pycurl-7.19.0-9.el6.x86_64.rpm 

wget  http://mirrors.ustc.edu.cn/centos/6/os/x86_64/Packages/python-devel-2.6.6-66.el6_8.x86_64.rpm

wget  http://mirrors.ustc.edu.cn/centos/6/os/x86_64/Packages/python-libs-2.6.6-66.el6_8.x86_64.rpm

wget  http://mirrors.ustc.edu.cn/centos/6/os/x86_64/Packages/python-urlgrabber-3.9.1-11.el6.noarch.rpm

wget  http://mirrors.ustc.edu.cn/centos/6/os/x86_64/Packages/rpm-python-4.8.0-59.el6.x86_64.rpm

    

3.安装命令(root权限使用下面的命令)

        rpm -ivh python-*   rpm-python-*  --nodeps --force
    

1.创建yum目录到yum目录下

        mkdir /usr/local/src/yum
    

2.在线下载yum.rpm

        
wget http://mirrors.ustc.edu.cn/centos/6/os/x86_64/Packages/yum-3.2.29-81.el6.centos.noarch.rpm

wget http://mirrors.ustc.edu.cn/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm 
  
wget http://mirrors.ustc.edu.cn/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-41.el6.noarch.rpm

    

 

3.安装命令

        rpm -ivh yum-*
    

原文:https://www.cnblogs.com/LambertL/p/10395812.html


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!