CentOS 6.5搭建本地OpenStack、epel软件源

感谢朋友支持本博客,欢迎共同探讨交流,由于能力和时间有限,错误之处在所难免,欢迎指正!

如有转载,请保留源作者博客信息。

Better Me的博客:blog.csdn.net/tantexian

如需交流,欢迎大家博客留言。

CentOS 6.5搭建本地OpenStack软件源

mkdir -p /home/yum/openstack/openstack-icehouse/epel-6/
wget -np -nH –cut-dirs=1 -r -c -L –exclude-directories=repodata –accept=rpm,zip,gz,xml http://repos.Fedorapeople.org/repos/openstack/openstack-icehouse/epel-6/ -P /tmp

下载完成后:(将openstackyum目录合并到本地yum文件夹中)
mv /tmp /repos/openstack/openstack-icehouse/epel-6/  /home/yum/openstack/openstack-icehouse/epel-6/

vim rdo-release.repo

[openstack-icehouse]
name=OpenStack Icehouse Repository
baseurl=http://192.168.1.200/yum/openstack/openstack-icehouse/epel-6/
enabled=1
skip_if_unavailable=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-RDO-Icehouse
priority=98

createrepo -pdo  /home/yum/openstack/openstack-icehouse/epel-6/   /home/yum/openstack/openstack-icehouse/epel-6/



本地OpenStack软件源搭建完成



本地epel软件源搭建开始:



mv /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.tmp

vim /etc/yum.repos.d/epel-local.repo

[epel-local]
name=local epel
baseurl=http://192.168.1.200/yum/epel/centos/6.5/os/x86_64/
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6


本地epel软件源搭建完成!!!



epel.repo源码包地址:

wget -t 1 -np -nH –cut-dirs=1 -r -c -L –exclude-directories=repodata –accept=rpm,zip,gz,xml http://mirrors.hust.edu.cn/centos/6.5/os/x86_64/ -P /tmp

其中wget 中-t 1 表示连接超时重连次数,一般设置为重试一次就ok


官方源码包地址:

http://repos.fedorapeople.org/repos/openstack/openstack-icehouse/epel-6/

你可能感兴趣的:(CentOS 6.5搭建本地OpenStack、epel软件源)