Linux Yum Source fully configured

Source: Internet
Author: User
Tags gpg percona

First, Introduction

Yum's main function is more convenient to add/remove/update RPM packages, automatically solve the problem of package dependencies, easy to manage a large number of system update issues, the idea is to use a central warehouse (repository) to manage a part of even a distribution application interrelationships, Based on the calculated software dependencies related to the upgrade, installation, deletion and other operations, reducing the Linux users have been headache dependencies problem. You can configure multiple repositories (Repository), Concise configuration files (/etc/yum.conf), and automatically resolve the dependency problems encountered when adding or removing RPM packages, maintaining consistency with the RPM database.

Second, the Software installation method and strategy

http://seisman.info/how-to-install-softwares-under-centos-7.html

Third, the official source

To configure the CentOS6 official source, proceed as follows:

1) Execute the following command to view the Yum package

rpm-qa| grep Yum

2) Execute the following command to uninstall the original source

grepxargs 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 http://wget http://  centos.ustc.edu.cn/centos/6/os/i386/packages/yum-plugin-fastestmirror-1.1.30-10.el6.noarch.rpm 

4) Install the new Yum package by executing the following command

Yum-*

5) Download Yum's configuration source

wget http://Docs.linuxtone.org/soft/lemp/centos-base.repo

Modify the configuration source with the following modified links:

http://download.csdn.net/detail/u011640816/9252933

6) Execute the following instructions for unified Update

cd/etc/yumrepos.d/yum update

Iv. third-party sources

Centos/rhel The default Yum repositories are very limited and are limited to regular packages and updates to some packages in the release version, and with Rpmforge, you can add very many third-party RPM packages. The Rpmforge library now has more than 10000 CentOS packages and is considered by the CentOS community to be the safest and most stable of a third-party software library.

The steps are as follows:

1. Install yum-priorities plug-in
This plugin is used to set the order in which Yum calls the software source. Because the official source of the software, are relatively stable and recommended to use. Therefore, the order of official sources is higher than the order of third-party sources. How to ensure this order, you need to install yum-priorities this plugin.

Yum Install Yum-priorities

2, after installing the Yum-priorities plug-in, you need to set the/etc/yum.repos.d/directory of the. Repo related files (such as Centos-base.repo), insert order directives in these files: Priority=n ( n is a positive integer of 1 to 99, the smaller the value the higher the priority)
General configuration [Base],[addons],[updates],[extras] of the priority=1,[centosplus],[contrib] of priority=2, the other third software source is: priority=n (recommended N >10), take Centos-base.repo as an example:

##############################################################[base]name=centos-$releasever- Base# Mirrorlist=http://mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=os baseurl=http://ftp.sjtu.edu.cn/centos/$releasever/os/$basearch/gpgcheck=1  Gpgkey=file://etc/pki/rpm-gpg/rpm-gpg-key-centos-6priority=1 ##############################################################

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位# RPM- IVH http://linuxdownload.adobe.com/linux/x86_64/adobe-release-x86_64-1.0-1.noarch.rpm     #64位# RPM-- Import/etc/pki/rpm-gpg/rpm-gpg-key-adobe-linux        #导入密钥

2. Set the priority=10 in Adobe-linux-x86_64.repo in/etc/yum.repos.d/

Adobe's Flashplayer plugin can now be installed

Yum Install Flash-plugin

4. Atomic Software Warehouse

1. Install atomic source

wget http://www.atomicorp.com/installers/atomic  #下载 sh ./atomic   # Installation

2. Set the priority=11 in Atomic.repo in/etc/yum.repos.d/

##############################################################[atomic]name=centos/red Hat Enterprise Linux $releasever-atomicrocketturtle.commirrorlist=http://www.atomicorp.com/mirrorlist/atomic/centos-6-$basearch#mirrorlist =http://www.atomicorp.com/channels/atomic/centos/6/mirrors-atomicEnabled=1Protect=0Gpgcheck=1Gpgkey=file:///Etc/pki/rpm-gpg/rpm-gpg-key.art.txtpriority= One##############################################################

5. Epel Software Warehouse

1, install Epel yum source

5-IVH http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
64-bit system: # RPM-IVH HTTP://DL.FEDORAPROJECT.ORG/PUB/EPEL/5/X86_64/EPEL-RELEASE-5-4.NOARCH.RPM
Import KEY: # RPM--import/etc/pki/rpm-gpg/rpm-gpg-key-epel-56-IVH/http dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
64-bit system: # RPM-IVH HTTP://DL.FEDORAPROJECT.ORG/PUB/EPEL/6/X86_64/EPEL-RELEASE-6-8.NOARCH.RPM
Import KEY: # RPM--import/etc/pki/rpm-gpg/rpm-gpg-key-epel-6

2. Set the priority=12 in Epel.repo in/etc/yum.repos.d/

Tip: If you're using a newer software, use the Epel-test.repo file.

###############################################################[epel]name=extra Packages forEnterprise Linux6-$basearch #baseurl=http://download.fedoraproject.org/pub/epel/6/$basearchMirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch= $basearchFailovermethod=priorityenabled=1Gpgcheck=1Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-epel-6priority= A#################################################################

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位 wget http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm #64位# rpm--import http://apt.sw.be/RPM-GPG-KEY.dag.txt #2安装DAG的PGP KEY# rpm--import/etc/pki/ RPM-GPG/*  #导入本地的key # rpm-k rpmforge-release-0.5.3-1.el6.rf.*.rpm    #验证rpmforge的rpm文件包 # rpm-i rpmforge-release-0.5.3-1.el6.rf.i386.rpm #安装rpmforge的rpm文件包

2. Set the level of the source in the/etc/yum.repos.d/rpmforge.repo file, priority=13

########################################################### name:rpmforge RPM Repository forRHEL6-dag### url:http://rpmforge.net/[Rpmforge]name=rhel $releasever-rpmforge.net-Dagbaseurl=http://apt.sw.be/redhat/el6/en/$basearch/rpmforgeMirrorlist=http://Apt.sw.be/redhat/el6/en/mirrors-rpmforge#mirrorlist =file:///Etc/yum.repos.d/mirrors-rpmforgeEnabled=1Protect=0Gpgkey=file:///Etc/pki/rpm-gpg/rpm-gpg-key-rpmforge-daggpgcheck=1 Priority= -########################################################

7. Rpmfusion Software Warehouse

Rpmfusion mainly provides a large number of RPM packages for the desktop distribution, while 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

-IVH http://download1.rpmfusion.org/free/el/updates/6/i386/rpmfusion-free-release-6-1.noarch.rpm
# RPM-IVH http://download1.rpmfusion.org/nonfree/el/updates/6/i386/rpmfusion-nonfree-release-6-1.noarch.rpm
-IVH http://download1.rpmfusion.org/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 the level of the source in the/etc/yum.repos.d/rpmfusion-free-updates.repo file, priority=14

#################################################################[rpmfusion- Free-updates-Testing]name=rpm Fusion forEL6-Free-Test Updates#baseurl=http://download1.rpmfusion.org/free/el/updates/testing/6/$basearch/Mirrorlist=http://mirrors.rpmfusion.org/mirrorlist?repo=free-el-updates-testing-6&arch= $basearchEnabled=1Gpgcheck=1Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-rpmfusion-free-el-6priority= -#################################################################

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.rpm rpm--import http://Www.percona.com/downloads/percona-release/RPM-GPG-KEY-percona

2. Set the level of the source in the/etc/yum.repos.d/percona. Repo file, priority=15

= CentOS $releasever- perconabaseurl=http://repo.percona.com/centos/7/os/$basearch/                                                                    1file:///Etc/pki/rpm-gpg/rpm-gpg-key-percona1 priority =

9. After installation, execute the following command, you can use the new Yum source management software.

Yumyum 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 the level of the source in the/etc/yum.repos.d/centos6-base-163.repo file, priority=16

[Base]name 163 . Combaseurl=http:///mirrors.163.com/centos/7/os/$basearch/#mirrorlist =http://  mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=osgpgcheck=1  Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-7priority=

Website:

http://mirrors.163.com/.help/

10. SCL Source

http://toutiao.com/i6231268237238075906/

V. Create a local software library

http://www.cnblogs.com/xiaoluo501395377/archive/2013/05/21/3089970.html

Reference: http://www.linuxdiyf.com/bbs/thread-423690-1-1.html
     Http://xmodulo.com/how-to-set-up-rpmforge-repoforge-repository-on-centos.html

Linux Yum Source fully configured

Related Article

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.