Catch up with Linux recently found some software needs to be updated, the original installation image is not found, simply to update it online.
System version:
# cat/etc/redhat-release Red Hat Enterprise Linux Server release 6.3 (Santiago) # Uname-alinux Drdrug 2.6.32-279.el6.i686 #1 SMP Wed June 18:23:32 EDT i686 i686 i386 gnu/linux
First of all, first remove the original yum:
# Rpm-qa | grep Yum | Xargs rpm-e--nodeps
The CentOS source is used, so the Yum for CentOS is installed.
Here to use NetEase's Mirror station: http://mirrors.163.com/centos/
Go in and choose the appropriate version number, for example I choose 6, and then in the os/directory select your operating system architecture, 32 or 64 bit, in the go to select packages/can see a heap of installation package.
We need to download the following files:
python-iniparse-0.3.1-2.1.el6.noarch.rpm
yum-metadata-parser-1.1.2-16.el6.i686.rpm
yum-3.2.29-60.el6.centos.noarch.rpm
yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm
Download to local using the wget command under Linux:
# wget http://mirrors.163.com/centos/6.6/os/i386/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm # wget/http MIRRORS.163.COM/CENTOS/6.6/OS/I386/PACKAGES/YUM-METADATA-PARSER-1.1.2-16.EL6.I686.RPM # wget/http MIRRORS.163.COM/CENTOS/6.6/OS/I386/PACKAGES/YUM-3.2.29-60.EL6.CENTOS.NOARCH.RPM # wget http://mirrors.163.com/ centos/6.6/os/i386/packages/yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm
Download failed, please note the minor version number.
After downloading, use the rpm command to install:
# RPM-IVH python-iniparse-0.3.1-2.1.el6.noarch.rpm# RPM-IVH yum-metadata-parser-1.1.2-16.el6.i686.rpm# RPM-IVH yum-3.2.29-60.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm
The last two interdependent so need to be installed together.
Download the configuration file after installation, or you can write it yourself.
# cd/etc/yum.repos.d/# RM-RF *# wget Http://mirrors.163.com/.help/CentOS6-Base-163.repo
Edit the file and change the BaseURL $releasever to the corresponding version number, which is 6.6
Clean up the cache
# yum Clean all# yum Makecache
Upgrade command
# Yum Update all software and configuration upgrades, including kernel system version # YUM-Y update all software configuration unchanged, software system version upgrade, kernel does not upgrade
Warm tip: The system version with Python version 2.6, if the upgrade to 2.7,yum will not be used, will do the necessary repair work. That is, modify the Yum file under/uer/bin/and point the first line to the old Python.
This article is from the "Technical Miscellaneous chat" blog, please be sure to keep this source http://drdrug.blog.51cto.com/4674398/1680755
RedHat6.1 Configuring online Yum Resources