Centos配置yum源

来源:互联网 发布:java常用包及类 编辑:程序博客网 时间:2024/05/27 10:42
centos6.xcd /etc/yum.repos.d/\cp CentOS-Base.repo CentOS-Base.repo.$(date +%F)wget http://mirrors.163.com/.help/CentOS6-Base-163.repoeple源yum -y install epel-releasecentos7.xmv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backupcd /etc/yum.repos.d/wget http://mirrors.163.com/.help/CentOS7-Base-163.repoyum clean allyum makecacheRHEL 官方扩展源yum -y install http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
原创粉丝点击