把/etc/yum.repos.d/下的Cent-Base.repo 备份
mv Cent-Base.repo Cent-Base.repo.bak
然后vi打开Cent-Base.repo,复制以下配置。然后再运行yum makecache即可。
# 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]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=http://ftp.sjtu.edu.cn/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
#released updates
[updates]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
baseurl=http://ftp.sjtu.edu.cn/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
baseurl=http://ftp.sjtu.edu.cn/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
baseurl=http://ftp.sjtu.edu.cn/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
baseurl=http://ftp.sjtu.edu.cn/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
2018-2-27 comment
使用阿里云的Alibaba Open Source Mirror Site
- http://mirrors.aliyun.com/help/centos?spm=5176.bbsr150321.0.0.d6ykiD
相关推荐
centos6_64 yum配置,一键搞定.centos6_64 yum配置,一键搞定
Centos 6 yum 国内源 非常难找。 附带 gmp-4.3.2.tar.bz2 mpc-0.8.1.tar.gz mpfr-2.4.2.tar.bz2
CentOS6.9安装的yum源 一不小心删除yum源后重新安装的文件
rhel中yum源替换centos中yum源
CentOS 5 yum源,163 yum源,shouhu yum源
centos9_StreamISO镜像及yum源配置文件和配置方法
阿里CentOS6 yum源
# 删除redhat自带的yum包 rpm -qa|grep yum|xargs rpm -e --nodeps...rpm -ivh yum-metadata-parser-1.1.4-10.el7.x86_64.rpm yum-3.4.3-150.el7.centos.noarch.rpm yum-plugin-fastestmirror-1.1.31-40.el7.noarch.rpm
解决红帽linux下载yum源问题,或其他linux系统yum源
yum源所需包 CentOS-Debuginfo.repo CentOS-Media.repo CentOS-Base.repo CentOS-fasttrack.repo CentOS-Vault.repo
CentOS6 YUM 源失效问题解决办法
CentOS6 提供的yum官方源,已作调整
centos6.1 yum源打包: 直接覆盖到 /etc/
centos 配置本地yum源库,很多版本都是为其他linux配置yum源库的教程,我使用的是centos,所以给出一些我自己配置的本地yum源库,基于centos
下载地址 https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo https://mirrors.aliyun.com/repo/epel-archive-8.repo
用shell批量下载163yum源上的rpm包,以便作本地源。
局域网搭建centos8 yum源,使用http协议,nginx服务器
修改linux操作系统 修改centos系统的yum源为阿里云详解
Centos光盘yum源搭建,Centos6,Cento7搭建方法一样;安装rpm包时,一条命令快速安装rpm,免去rpm依赖性
Centos 6.3 Yum本地源制作,介绍了详细的用法和和相关的步骤