CentOS 79 配置 yum 阿里 repo 源
配置 base repo 源$vi/etc/yum.repos.d/CentOS-Base-aliyun.repo# CentOS-Base.repo## The mirror system uses the connecting IP address of the client and the# update status of each mirror to pick mirrors that are updated to and# geographically close to the client. You should use this for CentOS updates# unless you are manually picking other mirrors.## If the mirrorlist does not work for you, as a fall back you can try the# remarked out baseurl line instead.[base]nameCentOS-79 - Base - mirrors.aliyun.comfailovermethodprioritybaseurlhttps://mirrors.aliyun.com/centos-vault/7.9.2009/os/x86_64/gpgcheck1gpgkeyhttp://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7# released updates[updates]nameCentOS-79 - Updates - mirrors.aliyun.comfailovermethodprioritybaseurlhttps://mirrors.aliyun.com/centos-vault/7.9.2009/updates/x86_64/gpgcheck1gpgkeyhttp://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7# additional packages that may be useful[extras]nameCentOS-79 - Extras - mirrors.aliyun.comfailovermethodprioritybaseurlhttps://mirrors.aliyun.com/centos-vault/7.9.2009/extras/x86_64/gpgcheck1gpgkeyhttp://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7# additional packages that extend functionality of existing packages[centosplus]nameCentOS-79 - Plus - mirrors.aliyun.comfailovermethodprioritybaseurlhttps://mirrors.aliyun.com/centos-vault/7.9.2009/centosplus/x86_64/gpgcheck1enabled0gpgkeyhttp://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7# contrib - packages by Centos Users[contrib]nameCentOS-79 - Contrib - mirrors.aliyun.comfailovermethodprioritybaseurlhttps://mirrors.aliyun.com/centos-vault/7.9.2009/contrib/x86_64/gpgcheck1enabled0gpgkeyhttp://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7常用命令# 清除缓存$ yum clean all# 构建缓存$ yum makecache配置 sclo repo 源用于安装devtoolset-*rh-python*等开发包$ yuminstall-ycentos-release-scl-rh $vi/etc/yum.repos.d/CentOS-SCLo-scl-rh.repo直接全部覆盖一下内容# CentOS-SCLo-rh.repo## Please see http://wiki.centos.org/SpecialInterestGroup/SCLo for more# information[centos-sclo-rh]nameCentOS-7 - SCLo rhbaseurlhttp://mirrors.aliyun.com/centos/7.9.2009/sclo/x86_64/rh/gpgcheck1enabled1gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo配置 epel repo 源$vi/etc/yum.repos.d/epel-aliyun.repo# epel.repo[epel]nameExtra PackagesforEnterprise Linux7- x86_64baseurlhttp://mirrors.aliyun.com/epel/7/x86_64/failovermethodpriorityenabled1gpgcheck0gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7[epel-debuginfo]nameExtra PackagesforEnterprise Linux7- x86_64 - Debugbaseurlhttp://mirrors.aliyun.com/epel/7/x86_64/debugfailovermethodpriorityenabled0gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7gpgcheck0[epel-source]nameExtra PackagesforEnterprise Linux7- x86_64 - Sourcebaseurlhttp://mirrors.aliyun.com/epel/7/SRPMSfailovermethodpriorityenabled0gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7gpgcheck0
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/2430815.html
如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!