RedHat7安装Centos软件

Posted abnk

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了RedHat7安装Centos软件相关的知识,希望对你有一定的参考价值。

# 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软件的主要内容,如果未能解决你的问题,请参考以下文章

redhat7.0安装时说基础软件仓库设置错误,这里该怎么配置,如图

rpm包

Redhat7.3更换CentOS7 yum源

字符界面Redhat7 / CentOS7 安装图形化界面

redhat7.3配置163 yum源

在VM虚拟机中安装Redhat7 / CentOs7