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!
put the original yum Source Uninstall off
# Rpm-qa | grep Yum | Xargs rpm-e–nodeps
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.
add a 163 yum Source
# cd/etc/yum.repos.d/
# wget Http://mirrors.163.com/.help/CentOS6-Base-163.repo
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
~
~
~
~
~
~
~
~
~
~
~
# yum Clean all// cleanup yum cache
# yum Makecache// cache the package information on the server locally to improve the speed of search and install software
# 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