RHEL6.6 Build CentOS6.6 Yum Source

Source: Internet
Author: User

It is now necessary to RHEL6.6 installed on zabbix2.4 , bridging the Internet through virtual machines Yum mode of installation, but yum–y installnet-snmp Zabbix zabbix-server The following error is reported, resulting in no installation:

650) this.width=650; "title=" 1.jpg "src=" Http://s3.51cto.com/wyfs02/M02/71/F1/wKiom1XbEPLzc0Q9AAGUbnRlKrM302.jpg " alt= "Wkiom1xbeplzc0q9aagubnrlkrm302.jpg"/>

This error is caused by no registration, how to do? Online also looked up some information, in accordance with the information on the Internet, will now for their own environment to organize and build a CentOS6.6 yum Source!

    1. put the original yum Source Uninstall off

# Rpm-qa | grep Yum | Xargs rpm-e–nodeps

    1. Add and install the downloaded yum rpm package

# rpm-ivhpython-iniparse-0.3.1-2.1.el6.noarch.rpm

# rpm-ivhyum-metadata-parser-1.1.2-16.el6.x86_64.rpm

# RPM-IVH yum-3.2.29-40.el6.centos.noarch.rpmyum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm

[ Note ] : The last two packages must be installed at the same time, since the two are interdependent.

    1. add a 163 yum Source

# cd/etc/yum.repos.d/

# wget Http://mirrors.163.com/.help/CentOS6-Base-163.repo

    1. Modify Centos6-base-163.repo

#CentOS-base.repo

#

# The Mirrorsystem uses the connecting IP address of the client and the

# Update statusof Mirror to pick mirrors that is updated to and

# Geographicallyclose to the client. should use thisfor CentOS updates

# unless aremanually picking other mirrors.

#

# If The mirrorlist=does isn't work for you, as a fall back to you can try the

# remarked Outbaseurl= line instead.

#

#

[Base]

name=centos- 6 -Base-163.com

baseurl=http://mirrors.163.com/centos/ 6 /os/$basearch/

#mirrorlist =http://mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=os

Gpgcheck=1

Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-6

#releasedupdates

[Updates]

name=centos- 6 -updates-163.com

baseurl=http://mirrors.163.com/centos/ 6 /updates/$basearch/

#mirrorlist =http://mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=updates

Gpgcheck=1

Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-6

#additionalpackages that could be useful

[Extras]

name=centos- 6 -extras-163.com

baseurl=http://mirrors.163.com/centos/ 6 /extras/$basearch/

#mirrorlist =http://mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=extras

Gpgcheck=1

Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-6

#additionalpackages that extend functionality of existing packages

[Centosplus]

name=centos- 6 -Plus-163.com

baseurl=http://mirrors.163.com/centos/ 6 /centosplus/$basearch/

#mirrorlist =http://mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=centosplus

Gpgcheck=1

Enabled=0

Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-6

#contrib-packages by Centos Users

[Contrib]

name=centos- 6 -contrib-163.com

baseurl=http://mirrors.163.com/centos/ 6 /contrib/$basearch/

#mirrorlist =http://mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=contrib

Gpgcheck=1

Enabled=0

Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-6

~

~

~

~

~

~

~

~

~

~

~

    1. # yum Clean all// cleanup yum cache

    2. # yum Makecache// cache the package information on the server locally to improve the speed of search and install software

    3. # yum Install vim*// test yum is available

at this point, the yum source for building CentOS6.6 has been successful.


This article is from the "Girl Technology" blog, please be sure to keep this source http://dreamerhan.blog.51cto.com/3907965/1687812

RHEL6.6 Build CentOS6.6 Yum 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.