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.