局域网YUM源配置

局域网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

分享到 :

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注