Linux配置本地yum云:
第一步:把cd 挂载到目录树
mount /dev/cdrom /mnt/media
第二步:增加/etc/yum.repo.d/local.repo
touch /etc/yum.repo.d/local.repo
vim /etc/yum.repo.d/local.repo
[local] name=Extra Packages for Enterprise Linux 6 - $basearch baseurl=file:///mnt/media/ failovermethod=priority enabled=1 gpgcheck=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 [HighAvailability] name=HighAvailability baseurl=file:///mnt/media/HighAvailability/ failovermethod=priority enabled=1 gpgckeck=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 [LoadBalancer] name=HighAvailability baseurl=file:///mnt/media/LoadBalancer/ failovermethod=priority enabled=1 gpgckeck=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 [Server] name=HighAvailability baseurl=file:///mnt/media/Server/ failovermethod=priority enabled=1 gpgckeck=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 [ResilientStorage] name=HighAvailability baseurl=file:///mnt/media/ResilientStorage/ failovermethod=priority enabled=1 gpgckeck=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 [ScalableFileSystem] name=ScalableFileSystem baseurl=file:///mnt/media/ScalableFileSystem/ failovermethod=priority enabled=1 gpgckeck=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6