Add third-party sources for centos

Source: Internet
Author: User
Tags gpg

The default centos comes with a lot of good software, so you need to add a third source
1. Install the centos Yum source priority plug-in Yum-Priorities
Yum install yum-plugin-priorities.noarch
2. Set the highest priority of the centos default Yum Source
CD/etc/yum. Repos. d/# enter the yum source directory
VI CentOS-Base.repo # Add priority = 1 under the [base], [updates], [extras] group, add priority = 2 under the [centosplus], [contrib] Group
######################################## ########################
[Base]
Name = centos-$ releasever-Base
Using list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = OS
# Baseurl = http://developer.centos.org/centos/?releasever/ OS /?basearch/
Gpgcheck = 1
Gpgkey = file: // etc/pki/rpm-GPG/RPM-GPG-KEY-CentOS-6
Priority = 1

[Updates]
Name = centos-$ releasever-Updates
Using list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = updates
# Baseurl = http://developer.centos.org/centos/?releasever/updates/?basearch/
Gpgcheck = 1
Gpgkey = file: // etc/pki/rpm-GPG/RPM-GPG-KEY-CentOS-6
Priority = 1

[Extras]
Name = centos-$ releasever-extras
Using list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = extras
# Baseurl = http://developer.centos.org/centos/?releasever/extras/?basearch/
Gpgcheck = 1
Gpgkey = file: // etc/pki/rpm-GPG/RPM-GPG-KEY-CentOS-6
Priority = 1

[Centosplus]
Name = centos-$ releasever-plus
Using list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = centosplus
# Baseurl = http://developer.centos.org/centos/?releasever/centosplus/?basearch/
Gpgcheck = 1
Enabled = 0
Gpgkey = file: // etc/pki/rpm-GPG/RPM-GPG-KEY-CentOS-6
Priority = 2

[Contrib]
Name = centos-$ releasever-contrib
Using list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = contrib
# Baseurl = http://developer.centos.org/centos/?releasever/contrib/?basearch/
Gpgcheck = 1
Enabled = 0
Gpgkey = file: // etc/pki/rpm-GPG/RPM-GPG-KEY-CentOS-6
Priority = 2
######################################## #######################
Note: the priority of priority is 1 to 99. If it is set to 1, the priority is the highest. If it is 1 to 10, it is retained by the system. The priority of a third-party Yum source ranges from 11 to 99.

3. Install epel Yum Source
Rpm-IVH http://download.fedora.redhat.com/pub/epel/6/i386/epel-release-6-5.noarch.rpm
Rpm -- import/etc/pki/rpm-GPG/RPM-GPG-KEY-EPEL-6
VI/etc/yum. Repos. d/epel. Repo # modify the epel Yum source priority, priority = 11

######################################## #######################
[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? Epel-6 & arch = $ basearch
Failovermethod = Priority
Enabled = 1
Gpgcheck = 1
Gpgkey = file: // etc/pki/rpm-GPG/RPM-GPG-KEY-EPEL-6
Priority = 11
######################################## #########################

4. Install rpmforge Yum Source
Wget http://apt.sw.be/redhat/el6/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
Wget http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
Rpm -- import RPM-GPG-KEY.dag.txt
Rpm-IVH rpmforge-release-0.5.2-2.el6.rf.i686.rpm
VI/etc/yum. Repos. d/rpmforge. Repo # modify rpmforge Yum source priority, priority = 12

######################################## #########################
[Rpmforge]
Name = RHEL $ releasever-rpmforge.net-Dag
Baseurl = http://apt.sw.be/redhat/el6/en/?basearch/rpmforge
Using list = http://apt.sw.be/redhat/el6/en/mirrors-rpmforge
# Prepare list = file: // etc/yum. Repos. d/mirrors-rpmforge
Enabled = 1
Protect = 0
Gpgkey = file: // etc/pki/rpm-GPG-key-rpmforge-Dag
Gpgcheck = 1
Priority = 12
######################################## #########################


5. Install rpmfusion Yum Source
Rpm-IVH http://download1.rpmfusion.org/free/el/updates/testing/6/i386/rpmfusion-free-release-6-0.1.noarch.rpm
VI/etc/yum. Repos. d/rpmfusion-free-updates-testing.repo # modify rpmfusion Yum source priority, priority = 13
 
######################################## #########################
[Rpmfusion-free-Updates-testing]
Name = RPM fusion for el 6-free-test updates
# Baseurl = http://download1.rpmfusion.org/free/el/updates/testing/6/?basearch/
Using list = http://mirrors.rpmfusion.org/mirrorlist? Free-el-updates-testing-6 & arch = $ basearch
Enabled = 1
Gpgcheck = 1
Gpgkey = file: // etc/pki/rpm-GPG/RPM-GPG-KEY-rpmfusion-free-el-6
Priority = 13
System O & M www.osyunwei.com reminder: qihang01 original content©All rights reserved. For more information, see the source and original link.
######################################## #########################
6. Install the atomic Yum Source
Wget http://www.atomicorp.com/installers/atomic # download
Sh./atomic # Installation
VI/etc/yum. Repos. d/Atomic. Repo # modify atomic Yum source priority, priority = 14
######################################## ######################
[Atomic]
Name = centos/Red Hat Enterprise Linux $ releasever-atomicrocketturtle.com
Export List = http://www.atomicorp.com/?list/atomic/centos-6-?basearch
# Items list = http://www.atomicorp.com/channels/atomic/centos/6/mirrors-atomic
Enabled = 1
Priority = 1
Protect = 0
Gpgkey = file: // etc/pki/rpm-GPG/RPM-GPG-KEY.art.txt
Gpgcheck = 1
Priority = 14
######################################## ######################
VII. Update Yum Software Package
Yum check-Update

Add third-party sources for centos

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.