问题导读
1、在本地搭建OpenStack软件源,需要走哪些流程?
2、如何下载epel.repo源码包?
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/re ... ck-icehouse/epel-6/
|