Centos 6.0 Yum update source

Source: Internet
Author: User
Tags gpg delete cache

There is a centos 6.0 Image in the Image site of MIIT (http://centos.ustc.edu.cn.
Back up/etc/yum. Repos. d/CentOS-Base.repo first

# Mv/etc/yum. Repos. d/CentOS-Base.repo/etc/yum. Repos. d/CentOS-Base.repo.bak

Then change the/etc/yum. Repos. d/CentOS-Base.repo file

 

Back up the source file and the RPM public key file before replacing the source file.
/ECT/yum. conf Yum configuration file
/Etc/yum. Repos. d/repo file, source site
/Etc/pki/rpm-GPG/RPM Public Key File

Then log on to the website http://mirrors.163.com or http://mirrors.sohu.com,

View the help of feoora, which describes the operation.

Then

Delete cache update
Yum clean all
Yum makecache

You can also automatically add high-speed sources.
Install Yum-plugin-fastestmirror (automatically select a fast image site)
Yum install Yum-fastestmirror
Note: Determine plugins = 1 in/etc/yum. conf.

 

 

# CentOS-Base.repo
#
# This file uses a new release list system developed by Lance Davis for centos.
# The mirror system uses the connecting IP address of the client and
# Update Status of each mirror to pick mirrors that are updated to and
# Geographically close to the client. You shoshould use this for centos updates
# Unless you are manually picking other mirrors.
#
# If the specified list = does not work for you, as a fall back you can try
# Remarked out baseurl = line instead.
#
#

[Base]
Name = centos-$ releasever-Base
Baseurl = http://mirrors.ustc.edu.cn/centos/6.0/ OS /?basearch/
Gpgcheck = 1
Gpgkey = http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-6

# Released updates
[Updates]
Name = centos-$ releasever-Updates
Baseurl = http://mirrors.ustc.edu.cn/centos/6.0/updates/?basearch/
Gpgcheck = 1
Gpgkey = http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-6

# Packages used/produced in the build but not released
# [Addons]
# Name = centos-$ releasever-Addons
# Baseurl = http://mirrors.ustc.edu.cn/centos/?releasever/addons/?basearch/
# Gpgcheck = 1
# Gpgkey = http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-6
# Additional packages that may be useful
[Extras]
Name = centos-$ releasever-extras
Baseurl = http://mirrors.ustc.edu.cn/centos/6.0/extras/?basearch/
Gpgcheck = 1
Gpgkey = http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-6
# Additional packages that extend functionality of existing packages
[Centosplus]
Name = centos-$ releasever-plus
Baseurl = http://mirrors.ustc.edu.cn/centos/6.0/centosplus/?basearch/
Gpgcheck = 1
Enabled = 0
Gpgkey = http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-6

Just change the Source Path. Now we can update centos 6.0.

The following is Sohu's:

# CentOS-Base.repo
#
# This file uses a new release list system developed by Lance Davis for centos.
# The mirror system uses the connecting IP address of the client and
# Update Status of each mirror to pick mirrors that are updated to and
# Geographically close to the client. You shoshould use this for centos updates
# Unless you are manually picking other mirrors.
#
# If the specified list = does not work for you, as a fall back you can try
# Remarked out baseurl = line instead.
#
#

[Base]
Name = centos-$ releasever-Base
Baseurl = http://mirrors.sohu.com/centos/6.0/ OS /?basearch/
Gpgcheck = 1
Gpgkey = http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-6

# Released updates
[Updates]
Name = centos-$ releasever-Updates
Baseurl = http://mirrors.sohu.com/centos/6.0/updates/?basearch/
Gpgcheck = 1
Gpgkey = http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-6

# Packages used/produced in the build but not released
# [Addons]
# Name = centos-$ releasever-Addons
# Baseurl = http://mirrors.sohu.com/centos/?releasever/addons/?basearch/
# Gpgcheck = 1
# Gpgkey = http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-6
# Additional packages that may be useful
[Extras]
Name = centos-$ releasever-extras
Baseurl = http://mirrors.sohu.com/centos/6.0/extras/?basearch/
Gpgcheck = 1
Gpgkey = http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-6
# Additional packages that extend functionality of existing packages
[Centosplus]
Name = centos-$ releasever-plus
Baseurl = http://mirrors.sohu.com/centos/6.0/centosplus/?basearch/
Gpgcheck = 1
Enabled = 0
Gpgkey = http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-6
The following is the source of Netease 163:

# CentOS-Base.repo
#
# This file uses a new release list system developed by Lance Davis for centos.
# The mirror system uses the connecting IP address of the client and
# Update Status of each mirror to pick mirrors that are updated to and
# Geographically close to the client. You shoshould use this for centos updates
# Unless you are manually picking other mirrors.
#
# If the specified list = does not work for you, as a fall back you can try
# Remarked out baseurl = line instead.
#
#

[Base]
Name = centos-$ releasever-Base
Baseurl = http://mirrors.163.com/centos/6.0/ OS /?basearch/
Gpgcheck = 1
Gpgkey = http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6

# Released updates
[Updates]
Name = centos-$ releasever-Updates
Baseurl = http://mirrors.163.com/centos/6.0/updates/?basearch/
Gpgcheck = 1
Gpgkey = http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6

# Packages used/produced in the build but not released
# [Addons]
# Name = centos-$ releasever-Addons
# Baseurl = http://mirrors.163.com/centos/?releasever/addons/?basearch/
# Gpgcheck = 1
# Gpgkey = http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6
# Additional packages that may be useful
[Extras]
Name = centos-$ releasever-extras
Baseurl = http://mirrors.163.com/centos/6.0/extras/?basearch/
Gpgcheck = 1
Gpgkey = http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6
# Additional packages that extend functionality of existing packages
[Centosplus]
Name = centos-$ releasever-plus
Baseurl = http://mirrors.163.com/centos/6.0/centosplus/?basearch/
Gpgcheck = 1
Enabled = 0
Gpgkey = http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6
After tests, CERNET uses HKUST sources quickly. The Internet uses Netease sources very quickly.

Add Google Chrome source

 
[Google] Name = Google-iw.baseurl = http://dl.google.com/linux/rpm/stable/i386enabled=1gpgcheck=1gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

 
Stable version: sudo Yum install Google-chrome-stable beta version: sudo Yum install Google-chrome-beta
 ln-S/lib/libbz2.so. 1/opt/Google/Chrome/libbz2.so. 1.0 
chcon-T usr_t/opt/Google/Chrome/chrome-sandbox
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.