Centos5.2 64-bit Yum: Shanghai Jiao Tong University of China's first choice (unverified)

Source: Internet
Author: User

After the centos5.264-bit operating system is installed, the upgrade problem is considered first. The first consideration for upgrading is to find a fast upgrade site and Image site. After many tests, the speed of Shanghai Jiao Tong University can reach around in the daytime when it is set to accelerate Yum with Axel, basically, it can satisfy various centos enthusiasts. The specific settings are as follows:

1. Backup CentOS-Base.repo (with root privileges)

Run on the terminal:

CP/Etc/yum. Repos. d/CentOS-Base.repo/Etc/yum. Repos. d/CentOS-Base.repo.bak

2. replace or edit the upgraded site and Image Content

1. Still running on the terminal:

Gedit/Etc/yum. Repos. d/CentOS-Base.repo

2. Clear geditProgramThe content in the Centos-Base.repo file opened in the window, paste the following content.

[Base]
CentOS-5-Base
Base url = http://centos.ustc.edu.cn/centos/5.2/ OS /x86_64/
Gpgcheck = 1
Gpgkey = http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-centos5

# Released updates
[Update]
CentOS-5-Updates
Base url = http://centos.ustc.edu.cn/centos/5.2/updates/x86_64/
Gpgcheck = 1
Gpgkey = http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-centos5

# Packages used/produced in the build but not released
[Addons]
CentOS-5-Addons
Base url = http://centos.ustc.edu.cn/centos/5.2/addons/x86_64/
Gpgcheck = 1
Gpgkey = http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-centos5

# Additional packages that may be useful
[Extras]
Name = CentOS-5-extras
Base url = http://centos.ustc.edu.cn/centos/5.2/extras/x86_64/
Gpgcheck = 1
Gpgkey = http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-centos5

# Additional packages that extend functionality of existingpackages
[Centosplus]
CentOS-5-plus
Base url = http://centos.ustc.edu.cn/centos/5.2/centosplus/x86_64/
Gpgcheck = 1
Enabled = 0
Gpgkey = http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-centos5

# Contrib-packages by centos users
[Contrib]
Name = CentOS-5-contrib
Base url = http://centos.ustc.edu.cn/centos/5.2/contrib/x86_64/
Gpgcheck = 1
Enabled = 0
Gpgkey = http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-centos5

3. Import key.

Still running on the terminal:

Rpm-importhttp: // ftp.sjtu.edu.cn/centos/5.2/ OS /x86_64/rpm-gpg-key-centos-5

4. Terminal running: Yum update

In this way, the first Yum source is Shanghai Jiao Tong University.

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.