Linux搭建本地yum源配置

cd /etc/yum.repos.d

vi local.repo

加入如下配置

[BaseOS]
name= BC-Linux-8.2 - BaseOS
baseurl=http://10.104.89.8/BClinux-iso/BaseOS/
gpgcheck=0
enabled=1

[AppStream]
name= BC-Linux-8.2 - AppStream
baseurl=http://10.104.89.8/BClinux-iso/AppStream/
gpgcheck=0
enabled=1



[BaseOS]
name= BC-Linux-8.2 - BaseOS
baseurl=file:///home/oracle/iso/BaseOS/
gpgcheck=0
enabled=1

[AppStream]
name= BC-Linux-8.2 - AppStream
baseurl=file:///home/oracle/iso/AppStream/
gpgcheck=0
enabled=1

测试:

yum repolist

posted @ 2023-08-14 10:10  幸福在靠近  阅读(141)  评论(0编辑  收藏  举报