局域网YUM源配置

yumserver

# rm -fr /etc/yum.repos.d/*

# vi /etc/yum.repos.d/localyum.repo

[base]
name=localyum
baseurl=http://192.168.0.112
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

[updates]
name=localyum
baseurl=http://192.168.0.112
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

# yum clean all
# yum makecache

转载请附上原文出处链接及本声明
李老师的博客 » 局域网YUM源配置

发表评论

提供最优质的文章集合

立即查看 了解详情