首页 > 代码库 > rhel6本地yum源配置文件

rhel6本地yum源配置文件

 

 

 

 1 mount -t iso9660 -o loop /dev/cdrom /mnt  2 mkdir /yum/rhel6 -p 3 cp -avR /mnt/* /yum/rhel6/ 4  5 vim /etc/yum.repos.d/rhel6-local.repo 6  7 [rhel-packages] 8 name=packages 9 baseurl=file:///yum/rhel6/10 enabled=111 gpgcheck=012 13 [rhel-server]14 name=server15 baseurl=file:///yum/rhel6/Server/16 enabled=117 gpgcheck=018 19 [rhel-HA]20 name=HA21 baseurl=file:///yum/rhel6/HighAvailability/22 enabled=123 gpgcheck=024 25 [rhel-Lb]26 name=Lb27 baseurl=file:///yum/rhel6/LoadBalancer/28 enabled=129 gpgcheck=030 31 [rhel-stor]32 name=stor33 baseurl=file:///yum/rhel6/ResilientStorage/34 enabled=135 gpgcheck=0