centos5 system update yum source

Mirroring the major stations only have the latest version of the directory contents, only a readme file in a directory other versions

Download of CentOS-Base.repo documents, decentralized /etc/yum.repos.d/ are impossible

Http://vault.centos.org/ found in the readme file in the site is mirrored versions

Backup of the original file

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

Yum source re-edit the configuration file write the following contents of this document to 5.5 version, for example, the case of other versions, such as 5.8, you can use the Find and Replace Notepad txt 5.5 version can be replaced with the corresponding
% RAK tribes%

we /etc/yum.repos.d/CentOS-Base.repo

CentOS-Base.repo
The mirror system uses the connecting IP address of the client and the
update status of each mirror to pick mirrors that are updated to and
geographically close to the client. You should use this for CentOS updates
unless you are manually picking other mirrors.

If the mirrorlist= does not work for you, as a fall back you can try the
remarked out baseurl= line instead.

[base]
name=CentOS-KaTeX parse error: Expected 'EOF', got '#' at position 127: …G-KEY-CentOS-5 #̲released update…releasever – Updates
baseurl=http://vault.centos.org/5.5/updates/i386/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
#packages used/produced in the build but not released
[addons]
name=CentOS-KaTeX parse error: Expected 'EOF', got '#' at position 133: …G-KEY-CentOS-5 #̲additional pack…releasever – Extras
baseurl=http://vault.centos.org/5.5/extras/i386/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-KaTeX parse error: Expected 'EOF', got '#' at position 145: …G-KEY-CentOS-5 #̲contrib – packa…releasever – Contrib
baseurl=http://vault.centos.org/5.5/contrib/i386/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

After saving the file, run yum clean all yum makecache

This tutorial from the fixed link: http://www.rakbuluo.com/p22/

Guess you like

Origin blog.csdn.net/xiayudaibas/article/details/92612445