Linux--本地yum库

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

  

posted on 2015-12-03 10:04  蒋乐兴的技术随笔  阅读(351)  评论(1编辑  收藏  举报

导航