先把http://mirrors.163.com/centos/7.2.1511/cloud/x86_64/openstack-newton/目錄下的rpm包整理到一個文件rpmlist.txt中,而後把common目錄下的rpm整理到rpmlist-common.txt中centos
用下面的命令把第一個文件中的rpm下載下來get
for RPM in `cat rpmlist.txt`; do wget http://mirrors.163.com/centos/7.2.1511/cloud/x86_64/openstack-newton/$RPM; done;下載
用下面的命令把第二個文件的rpm下載下來openstack
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;文件