现在网上已经没有centos6.5能用的源了,所以自己建是最方便,稳妥的了,写了一个脚本自动搞定
#!/bin/bash dir=$(pwd) if [ ! -f "$dir/CentOS-6.5-x86_64-bin-DVD1.iso" ];then curl -o CentOS-6.5-x86_64-bin-DVD1.iso http://192.168.0.6/CentOS-6.5-x86_64-bin-DVD1.iso fi mkdir /mnt/yum mount -o loop $dir/CentOS-6.5-x86_64-bin-DVD1.iso /mnt/yum rm -f /etc/yum.repos.d/* cat>/etc/yum.repos.d/local.repo<<EOF [local_server] name=my local yum src baseurl=file:///mnt/yum enabled=1 gpgcheck=0 EOF yum clean all yum makecache yum install -y lrzsz
标签:bin,DVD1,x86,CentOS,配置,centos5.6,6.5,yum,本地 From: https://www.cnblogs.com/yuandaozhe/p/17354664.html