set source

mount -o loop /var/www/html/CentOS-6.4-x86_64-bin-DVD1.iso /var/www/html/CentOS

[base]
name=CentOS
baseurl=http://193.168.140.49/CentOS/
gpgcheck=1
gpgkey=http://193.168.140.49/CentOS/RPM-GPG-KEY-CentOS-6

wget -c -r -np www.163.com/StrDir -p DstDir

wget -np -nH --cut-dirs=1 -r -c -L --exclude-directories=repodata --accept=rpm,zip,gz,xml https://repos.fedorapeople.org/repos/openstack/EOL/openstack-icehouse/epel-6/ -P /tmp

[openstack-icehouse]
name=OpenStack Icehouse Repository
baseurl=http://193.168.140.49/
enabled=1
gpgcheck=0

[packstack-epel]
name=Packstack EPEL
baseurl=http://193.168.140.49/icehouse-epel/
enable=1
gpgcheck=0

原文地址:https://www.cnblogs.com/yaoweilei/p/5050802.html