yum rpm源

网易镜像centos 7

阿里云centos7

清华centos 7

配置仓库

1

rm -rf /etc/yum.repo.d/*

安装 wget

1

yum install provides  wget -y

1

2

cd /etc/yum.repo.d/

wget http://mirrors.163.com/.help/CentOS7-Base-163.repo

安装阿里云

1

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

安装 清华的

1

2

yum install yum-ytils -y

yum-config-manager --add-repo=https://mirrors.tuna.tsinghua.edu.cn/centos/7/os/x86_64/

1

2

3

4

5

[wangyi]

name=Centos wangyi repo

baseurl=http://mirrors.163.com/centos/7/os/x86_64/

gpgcheck=1

gpgkey=http://mirrors.163.com/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7

查看  生成缓存 (可能 要开启某个配置)本地yum源 配置 本地yum 

1

2

3

4

5

6

7

8

9

yum repolist

yum malecache

mkdir -p  /mnt/cdrom

mount /dev/cdrom /mnt/cdrom

vim /etc/yum.repo.d/local-centos.repo

[local]

name=local centos7 repo

baseurl=file:///mnt/cdrom

yum  repolist

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值