码迷,mamicode.com
首页 > 系统相关 > 详细

Linux--本地yum库

时间:2015-12-03 11:33:44      阅读:159      评论:0      收藏:0      [点我收藏+]

标签:

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

  

Linux--本地yum库

标签:

原文地址:http://www.cnblogs.com/JiangLe/p/5015218.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!