此配置文件为本地源配置.
首先要将安装文件放在一个你自己任为合适的位置.
开启FTP服务,默认的配置就可以.
***************************yum.conf*****************
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
# Note: yum-RHN-plugin doesn't honor this.
metadata_expire=1h
# Default.
# installonly_limit = 3
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
[base]
name=Red Hat Enterprise 5u7 &releaserver -$basearch -Debug
baseurl=ftp://ftp:fpt@192.168.56.50/pub/rhel5u7/Server
enable=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[Cluster]
baseurl=ftp://ftp:ftp@192.168.56.50/pub/rhel5u7/Cluster
enable=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[ClusterStorage]
baseurl=ftp://ftp:ftp@192.168.56.50/pub/rhel5u7/ClusterStroage
enable=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[VT]
baseurl=ftp://ftp:ftp@192.168.56.50/pub/rhel5u7/VT
enable=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
阅读(551) | 评论(0) | 转发(1) |