Build local base, Extra, Epel, OpenStack source

Source: Internet
Author: User
Tags eol

Build local base, Extra, Epel, OpenStack Source, OpenStack experiment, the necessary environment, so you can get rid of network restrictions, do not have to worry about how to use the Internet.


Build local base, Extra, Epel, OpenStack source


Need to install HTTPD service



(1), local base source, install the first disc [4G]

Centos-6.5-x86_64-bin-dvd1.iso

mount/dev/cdrom/mntcp-rf/mnt/packages/*/data/baseumount/mnt

Mount another disc



(2), local extra source, install the second disc [2G]

Centos-6.5-x86_64-bin-dvd2.iso

mount/dev/cdrom/mntcp-rf/mnt/packages/*/data/basecreaterepo-p-d-o/data/base/data/baseumount/mnt



(3), mirror Federa Epel source to local [27G]

#RPM包地址

http://dl.fedoraproject.org/pub/epel/6/x86_64/

#创建下载目录

mkdir/data/fedora_epel/

#切换到下载目录

cd/data/fedora_epel/

#下载文件

Wget-np-nh–cut-dirs=1-r-c-l–exclude-directories=repodata–accept=rpm,gz,xml Http://dl.fedoraproject.org/pub/epel /6/x86_64/-p/data/fedora_epel/

#创建元数据

Createrepo-p-d-o/data/fedora_epel/pub/epel/6/x86_64/data/fedora_epel/pub/epel/6/x86_64




(4), mirrored Federa OpenStack source to local [2G]

#RPM包

https://repos.fedorapeople.org/repos/openstack/EOL/openstack-icehouse/epel-6/

#创建下载目录

Mkdir-p/opt/epel6

#切换到下载目录

Cd/opt/epel6

#下载RPM包

Wget-np-nh–cut-dirs=1-r-c-l–exclude-directories=repodata–accept=rpm,gz,xml Https://repos.fedorapeople.org/repos /openstack/eol/openstack-icehouse/epel-6/-p/opt/epel6

#创建目录

Mkdir-p/data/openstack-icehouse/

#移动刚刚下载的软件到该目录

mv/opt/epel6/repos/openstack/eol/openstack-icehouse/*/data/openstack-icehouse/

#创建元数据

Createrepo-p-d-o/data/openstack-icehouse/epel-6/data/openstack-icehouse/epel-6

#创建元数据, see a Epel folder in the downloaded software

Createrepo-p-d-o/data/openstack-icehouse/epel-6/epel//data/openstack-icehouse/epel-6/epel/


#创建到httpd服务目录的软连接

Ln-s/data/base/var/www/html/baseln-s/data/fedora_epel/pub/epel/6/x86_64/var/www/html/epelln-s/data/ Openstack-icehouse/epel-6/var/www/html/openstack


#各个软件包的web访问入口

http://192.168.202.7/base/base/http://192.168.202.7/epel/x86_64/http://192.168.202.7/openstack/epel-6/http:// 192.168.202.7/openstack/epel-6/epel/



#配置Repository文件

rm-rf/etc/yum.repos.d/

Vim Centos-media.repo

Yum Clean All

Yum Makecache

[Centos-base-yum]name=centos base Yum repositorybaseurl=http://192.168.202.7/base/base/enabled=1gpgcheck=0[ Centos-epel-yum]name=centos Epel Yum repositorybaseurl=http://192.168.202.7/epel/x86_64/enabled=1gpgcheck=0[ Openstack-icehouse]name=openstack Icehouse repositorybaseurl=http://192.168.202.7/openstack/epel-6/enabled= 1gpgcheck=0[openstack-icehouse-epel]name=openstack Icehouse Epel Repositorybaseurl=http://192.168.202.7/openstack /epel-6/epel/enabled=1gpgcheck=0

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/76/E4/wKioL1Zei3aDxPD5AACKJYHwxP8845.jpg "title=" Yumrepolist.jpg "alt=" Wkiol1zei3adxpd5aackjyhwxp8845.jpg "/>


This article is from the "unix-like" blog, make sure to keep this source http://alipay.blog.51cto.com/7119970/1718832

Build local base, Extra, Epel, OpenStack source

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.