Yum源使用
前言:
上接文章: 搭建yum源
准备两台机器:
- server(yum仓库)
- agent(指向yum仓库)
Server
- rpm包获取地址法:
- 使用yum下载包
yum install --downloadonly --downloaddir=/home/repo perl
- 更新仓库
cd xxx/rpm-repo
createrepo ./
Agent
- 更新yum list 缓存
yum clean all
yum makecache
上接文章: 搭建yum源
准备两台机器:
yum install --downloadonly --downloaddir=/home/repo perl
cd xxx/rpm-repo
createrepo ./
yum clean all
yum makecache