Yum源使用

Yum源使用

前言:

上接文章: 搭建yum源

準備兩臺機器:

  • server(yum倉庫)
  • agent(指向yum倉庫)

Server

  • rpm包獲取地址法:

https://centos.pkgs.org/

https://rpmfind.net/

  • 使用yum下載包
yum install --downloadonly --downloaddir=/home/repo perl
  • 更新倉庫
cd xxx/rpm-repo
createrepo ./

Agent

  • 更新yum list 緩存
yum clean all
yum makecache
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章