使用reposync同步yum源
source link: https://blogread.cn/it/article/7661?f=hot1
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
使用reposync同步yum源.md
Openstack RDO使用的源是repos.fedorapeople.org ,这个服务器在国外,特别慢而且容易中断。
最好能在国内同步一份数据过来,但是经测试发现这个机器没有开启rsync 服务。
上网找了一下,发现系统自带一个reposync命令可以实现同样的功能。
1. 安装reposync
yum install yum-utils createrepo yum-plugin-priorities -y
reposync命令是一个python脚本。包含在yum-utils包中。
2. 获取yum文件
#安装rdo的源文件
yum install -y http://rdo.fedorapeople.org/rdo-release.rpm
#查看源ID的列表
yum repolist
3. 执行同步
cd /home/htdocs/openstack
reposync --repoid=openstack-kilo
执行命令以后,可以看到reposync已经在当前目录生成了和远程yum源一致的文件。
4. 架设nginx对外服务
此步骤省略。
建议继续学习:
扫一扫订阅我的微信号:IT技术博客大学习
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK