0
点赞
收藏
分享

微信扫一扫

建立Yum软件仓库,改Yum仓库作为默认仓库

认真的老去 2022-04-18 阅读 101
linux

YUM REPO:http://content.example.com/rhe17.0/x89_64/dvd

1)"cd /etc/yum.repos.d" #系统默认的使用的yum配置文件

 

2)"vim rhe17.repo" #前缀些啥都可以,但.repo是固定的

3)写入:

[rhe17]

name=rhe17

baseurl=http://content.example.com/rhe17.0/x86_64/dvd

enabled=1

gpgcheck=0

 

4)"wq"#保存退出

5)"yum repolist"#查看是否修改成功

 

6)"yum -y install autofs chrony"#能下载成功就行

举报
0 条评论