Tags: mysql/linux
Overview
The article mainly introduces the configuration of Yum source, although there are many methods on the Internet, but each more or less a bit of a problem, so put their own configuration process to write out.
Directory
- Overview
- Steps
- Download the installation package
- uninstall your own yum
- Installing the Yum pack
- Add Yum
- Summary
StepsDownload the installation package
My current server version of Redhat6, so the download of the installation package should also be the corresponding LINUX6 installation package, which is configured here is a 163 yum source.
wget http://mirrors.163.com/centos/6/os/i386/packages/yum-3.2.29-69.el6.centos.noarch.rpmwget http://mirrors.163.com/centos/6/os/i386/packages/ yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpmwget http://mirrors.163.com/centos/6/os/i386 /packages/yum-metadata-parser-1.1.2-16.el6.i686.rpmwget http://mirrors.163.com/centos/6/os/ i386/packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm
uninstall your own yum
Rpm-aq|grep Yum|xargs rpm-e--nodeps
Installing the Yum pack
Note Order
RPM-IVH python-iniparse-0.3. 1-2.1-IVH yum-metadata-parser-1.1. 2-----ivh yum-3.2. el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1. --
Add Yum
Toggle Path
cd/etc/yum.repos.d/
Download file
wget http://Mirrors.163.com/.help/centos6-base-163.repo
Edit File
Vim centos6-base-163. Repo
The contents are as follows
# centos-base.repo## The mirror system uses the connecting IP address of the client and the# update status of each mirror to Pi CK mirrors that is updated to and# geographically close to the client. Should use This forCentOS updates# Unless you is manually picking other mirrors.## If the mirrorlist= Does not work forYou, asA fall back canTryThe # remarked outBaseurl=Line instead.##[Base]name=centos-6-Base-163. Combaseurl=http://mirrors.163.com/centos/6/os/i386/#mirrorlist =http://mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=osgpgcheck=1Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-6#released Updates [Updates]name=centos-6-Updates-163. Combaseurl=http://mirrors.163.com/centos/6/updates/i386/#mirrorlist =http://mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=updatesgpgcheck=1Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-6#additional Packages that could be useful[extras]name=centos-6-Extras-163. Combaseurl=http://mirrors.163.com/centos/6/extras/i386/#mirrorlist =http://mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=extrasgpgcheck=1Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-6#additional packages that extend functionality of existing Packages[centosplus]name=centos-6-Plus-163. Combaseurl=http://mirrors.163.com/centos/6/centosplus/i386/#mirrorlist =http://mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=centosplusgpgcheck=1enabled=0Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-6#contrib-packages by Centos Users[contrib]name=centos-6-Contrib-163. Combaseurl=http://mirrors.163.com/centos/6/contrib/i386/#mirrorlist =http://mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=contribgpgcheck=1enabled=0Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-6
Test whether the installation was successful
Yum Install PERL-DBI
Summary
Installation method is not difficult, to pay attention to the point is to download the RPM package to choose the right version, and the configuration repo later may encounter some trouble, but easy to solve.
If the article is helpful to everyone, please help recommend, thank you!!!
Note: pursuer.chen Blog:http://www.cnblogs.com/chenmh This site all the essays are original, welcome to reprint, but reprint must indicate the source of the article, and at the beginning of the article clearly to the link, otherwise reserves the right to hold responsibility. Welcome to the exchange of discussions |
---restore content ends---
Linux configuration Yum