先把http://mirrors.163.com/centos/7.2.1511/cloud/x86_64/openstack-newton/目录下的rpm包整理到一个文件rpmlist.txt中,然后把common目录下的rpm整理到rpmlist-common.txt中
用下面的命令把第一个文件中的rpm下载下来
for RPM in `cat rpmlist.txt`; do wget http://mirrors.163.com/centos/7.2.1511/cloud/x86_64/openstack-newton/$RPM; done;
用下面的命令把第二个文件的rpm下载下来
for RPM in `cat ../rpmlist-common.txt`; do echo http://mirrors.163.com/centos/7.2.1511/cloud/x86_64/openstack-newton/common/$RPM; done;