首页 > 代码库 > CentOS6.4建立本地源

CentOS6.4建立本地源

#mkdir /mnt/ISO
#mount -o loop /root/CentOS-6.4-x86_64-bin-DVD1.iso /mnt/ISO/
#mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak
#vi /etc/yum.repos.d/CentOS-Media.repo
baseurl=file:///mnt/ISO/
gpgcheck=0
enabled=1