码迷,mamicode.com
首页 > 其他好文 > 详细

RedHat7安装Centos软件

时间:2020-05-09 23:17:50      阅读:74      评论:0      收藏:0      [点我收藏+]

标签:软件   code   python   packages   wget   cache   yun   https   node   

# download from : https://mirrors.aliyun.com/centos/7/os/x86_64/Packages/
wget https://mirrors.aliyun.com/centos/7/os/x86_64/Packages/yum-3.4.3-167.el7.centos.noarch.rpm
wget https://mirrors.aliyun.com/centos/7/os/x86_64/Packages/yum-metadata-parser-1.1.4-10.el7.x86_64.rpm
wget https://mirrors.aliyun.com/centos/7/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.31-53.el7.noarch.rpm
wget https://mirrors.aliyun.com/centos/7/os/x86_64/Packages/yum-utils-1.1.31-53.el7.noarch.rpm
wget https://mirrors.aliyun.com/centos/7/os/x86_64/Packages/python-urlgrabber-3.10-10.el7.noarch.rpm
rpm -ivh *.rpm --force --nodeps

# 从网站上拷配置 :
https://mirrors-i.tuna.tsinghua.edu.cn/help/centos/
# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

sed -i s#$releasever#7#g /etc/yum.repos.d/CentOS-Base.repo
sed -i ‘s#gpgcheck=1#gpgcheck=0#g‘ /etc/yum.repos.d/CentOS-Base.repo
yum clean all && yum makecache && yum update && yum makecache

 

RedHat7安装Centos软件

标签:软件   code   python   packages   wget   cache   yun   https   node   

原文地址:https://www.cnblogs.com/abnk/p/12860450.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!