Full configuration of Linux yum Source

Source: Internet
Author: User
Tags percona

Full configuration of Linux yum Source
I. Introduction yum is mainly used to conveniently Add/delete/update RPM packages. It automatically solves the dependency problem of packages and facilitates management of a large number of system updates, the concept is to use a central repository to manage the relationship between some or even a distribution application, and perform related upgrade, installation, and deletion operations based on the calculated software dependency, this reduces the dependencies problem that Linux users have always suffered. Multiple resource libraries (Repository) and simple configuration files (/etc/yum. conf) automatically solves the dependency problem when the rpm package is added or deleted, and maintains consistency with the RPM database. 2. Software Installation Method and Policy http://seisman.info/how-to-install-softwares-under-centos-7.html 3. Official source configuration CentOS6 official source, steps are as follows: 1) execute the following command to view the yum package rpm-qa | grep yum 2) run the following command to uninstall the original source rpm-qa | grep yum | xargs rpm-e -- nodeps 3) download the new yum package wget http://centos.ustc.edu.cn/centos/6/ OS /i386/Packages/yum-3.2.29-22.el6.centos.noarch.rpmwget wget Http://centos.ustc.edu.cn/centos/6/ OS /i386/Packages/yum-plugin-fastestmirror-1.1.30-10.el6.noarch.rpm 4) execute the following command to install the new yum package rpm-ivh yum-* 5) download the configuration source for yum wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo to modify the configuration source, the modified link is as follows: http://download.csdn.net/detail/u011640816/9252933 6) run the following command to update cd/etc/yum. repos. d/yum update 4. The default yum software warehouse for CentOS/RHEL third-party sources is very limited. It is only limited to updates of General packages and some software packages in those disks of the release version, you can add a lot of numbers Third-party rpm software package. the RpmForge library now has more than 10000 CentOS software packages, which is considered by the CentOS community as the safest and most stable third-party software library. the steps are as follows: 1. Install the yum-priorities plug-in to set the order in which yum calls the software source. because the official software sources are relatively stable and recommended. therefore, the order of the official source is higher than that of the third source. to ensure this order, you need to install the yum-priorities plug-in. # yum-y install yum-priorities 2. After installing the yum-priorities plug-in, you need to set/etc/yum. repos. d/directory. repo-related files, such as CentOS-Base.repo, insert sequence commands in these files: priority = N (N is a positive integer from 1 to 99, the smaller the value is, the higher priority) general configuration [base], [addons], [updates], [extras] Priority = 1, [CentOSplus], [contrib] priority = 2, other third software source: priority = N (recommended N> 10), take CentOS-Base.repo as an example: ######################################## ##################### [base] name = CentOS-$ releasever-Base # Release List = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = osbaseurl = release 3, adobe software Warehouse 1, add adobe software warehouse and import key # rpm-ivh http://linuxdownload.adobe.com/linux/i386/adobe-release-i386-1.0-1.noarch.rpm #32-bit # rpm- ivh http://linuxdownload.adobe.co M/linux/x86_64/adobe-release-x86_64-1.0-1.noarch.rpm #64-bit # rpm -- import/etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux # import KEY 2, set/etc /yum. repos. d/In the adobe-linux-x86_64.repo of priority = 10 can now install adobe flash Player Plug-in # yum install flash-plugin 4, atomic software Warehouse 1, install atomic source # wget http://www.atomicorp.com/installers/atomic # download # sh. /atomic # Install 2. Set/etc/yum. repos. atomic in d. priority = 11 ######################### ##################################### [Atomic] name = CentOS/Red Hat Enterprise Linux $ releasever-atomicrocketturtle. combench list = tables ########################################### ################## 5. epel software Warehouse 1. Install the epel yum source CentOS 532-bit system: # rpm-ivh ready # rpm -- import/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-5 CentOS 632-bit system: # rpm-ivh ready rpm-ivh # Rpm -- import/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 2. Set/etc/yum. repos. epel in d. note: If you use a newer software, epel-test.repo with this file on the line ################################# ############################ [epel] name = Extra Packages for Enterprise Linux 6-$ basearch # baseurl = http://download.fedoraproject.org/pub/epel/6/$basearch Using list = https://mirrors.fedoraproject.org/metalink? Repo = epel-6 & arch = $ basearchfailovermethod = priorityenabled = 1 gpgcheck = 1 gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6priority = 12 ########################## ####################################### 6 rpmforge software Warehouse 1. Install rpmforge software source # wget http://apt.sw.be/redhat/el6/en/i386/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.i686.rpm #32 bit # wget http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release -0.5.3-1. el6.rf. x86_64.rpm #64-bit # rpm -- import http://apt.sw.be/RPM-GPG-KEY.dag.txt #2 install dag pgp Key # rpm -- import/etc/pki/rpm-gpg/* # import local key # rpm-K rpmforge-release-0.5.3-1.el6.rf. *. rpm # verify rpmforge rpm package # rpm-I rpmforge-release-0.5.3-1.el6.rf.i386.rpm # Install rpmforge rpm package 2. Set/etc/yum. repos. d/rpmforge. source level in the repo file, priority = 13 ##################################### ###################### Name: RPMfo Rge RPM Repository for RHEL 6-dag ### URL: http://rpmforge.net/?rpmforge=name=rhel $ releasever-RPMforge.net-dagbaseurl = bytes ####################### ################################ 7. Main rpmfusion software warehouse provides a large number of rpm packages for desktop releases, EPEL provides a large number of rpm packages for the server version, and most rpm packages are not found in the official repository 1. Install rpmfusion yum source 32-bit # rpm-ivh http://download1.rpmfusion.org/free/el/updates/6/i386/rpmfusion-free-release-6-1.noarch.rpm# rpm-ivh http://download1.rpmfusion.o Rg/free/el/updates/6/x86_64/rpmfusion-free-release-6-1.noarch.rpm # rpm-ivh http://download1.rpmfusion.org/nonfree/el/updates/6/x86_64/rpmfusion-nonfree-release-6-1.noarch.rpm 2. Set/etc/yum. repos. d/source level in the rpmfusion-free-updates.repo file, priority = 14 ##################################### ########################## [rpmfusion-free-updates-testing] name = RPM fusion for EL 6-Free-Test Updates # baseurl = http: // Response? Repo = free-el-updates-testing-6 & arch = $ basearchenabled = 1 gpgcheck = 1 gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-el-6priority = 14 ########################## ####################################### 8 percona software Warehouse 1. Install Percona yum source rpm-ivh http://www.percona.com/downloads/percona-release/percona-release-0.0-1.x86_64.rpmrpm-import http://www.percona.com/downloads/percona-release/RPM-GPG-KEY-perc Ona 2. Set/etc/yum. repos. d/Percona. source level in the repo file, priority = 15 [percona] name = CentOS $ releasever-Perconabaseurl = http://repo.percona.com/centos/7/ OS /basearch/ enabled = 1 gpgkey = file: /// etc/pki/rpm-gpg/RPM-GPG-KEY-perconagpgcheck = 1 priority = 15 9. After installation, run the following command, you can use the new yum source management software. # Yum clean all # yum makecache 9, 163 software Warehouse 1, install 163 yum source rpm-ivh http://mirrors.163.com/.help/CentOS6-Base-163.reporpm -- import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6 2, set/etc/yum. repos. d/source level in the CentOS6-Base-163.repo file, priority = 16 [base] name = CentOS-$ releasever-Base-163. combaseurl = response /? Release = $ releasever & arch = $ basearch & repo = osgpgcheck = 1 gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-7priority=16 5. Create a local software Repository

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.