centos 7 安裝本地yum源

服務器系統是centos 7.3,使用redhat 7.3的鏡像安裝yum源:rhel-server-7.3-x86_64-dvd.isovim

將鏡像上傳到服務器centos

新建掛載目錄服務器

mkdir /mnt/rhel7.3oop

鏡像掛載到目錄url

mount -o loop rhel-server-7.3-x86_64-dvd.iso /mnt/rhel7.3server

新建yum倉庫配置

編輯文件 vim /etc/yum.repos.d/centos.repofile

輸入如下內容gc

[rhel7.3]
name=rhel7.3
baseurl=file:///mnt/rhel7.3  //鏡像掛載的目錄
gpgcheck=0
enabled=1im

保存退出

執行yum clean 

yum makecache

本地yum源就配置完成了

相關文章
相關標籤/搜索