Linux System configuration Yum source

Source: Internet
Author: User
Tags gpg

1. Enter the Yum Source configuration directory

Cd/etc/yum.repos.d


2. Configure the local Yum source

VI Centos-media.repo [c6-media]name=centos-$releasever-mediabaseurl=file:///mnt File:///media gpgcheck=0enabled= 1gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-6


3. Configure the network Yum source

Download 163 NetEase's Yum Source: wget Http://mirrors.163.com/.help/CentOS6-Base-163.repo


3. After configuring the Yum source, perform the following command to update the Yum configuration so that the operation takes effect immediately

Yum Makecache

4. Other network Yum sources

Zhong Ke's yum Source: wget Http://centos.ustc.edu.cn/CentOS-Base.repo Sohu's yum source wget http://mirrors.sohu.com/help/ Centos-base-sohu.repo Epel Source wget Http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmyum Install epel-release-6-8.noarch.rpm or use RPM to mount RPM–IVH directly http://dl.fedoraproject.org/pub/epel/6/x86_64/  After the EPEL-RELEASE-6-8.NOARCH.RPM is configured, several. Repo files will be generated under this directory [[email protected] yum.repos.d]# Lsbak Centos6-base-163.repo Centos-media.repo Epel.repo Epel-testing.repo


This article is from the "Hello World" blog, so be sure to keep this source http://nxyboy.blog.51cto.com/10511646/1939540

Linux system configuration Yum source

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.