After redhat6.5is installed, log on to the system and use Yum update to update the system. Tip:
This system is not registered to Red Hat sub‑management. You can use sub‑manager to register.
Cannot be updated.
The default Yum source of RedHat needs to be registered before it can be updated. We want to update the yum source of RedHat without spending money. We need to replace the yum source of RedHat.
1. Check whether the yum package is installed
Check whether RHEL has Yum installed. If yes, what Yum packages are available:
[[Email protected] ~] # Rpm-Qa | grep yum
Yum-metadata-parser-1.0-8.fc6
Yum-3.0.1-5.el5
Yum-rhn-plugin-0.4.3-1.el5
Yum-updatesd-3.0.1-5.el5
2. Delete the yum package that comes with RedHat.
Uninstall all Yum packages shown above:
[[Email protected] ~] # Rpm-Qa | grep Yum | xargs rpm-e -- nodeps (delete the RPM package directly without checking the dependency)
Reuse
[[Email protected] ~] # Rpm-Qa | grep yum
[[Email protected] ~] #
View. If no information is displayed, the uninstall is completed.
3. download the new Yum package. Use centos6.5 Yum package
# wget http://mirrors.163.com/centos/6.5/os/i386/Packages/yum-metadata-parser-1.1.2-16.el6.i686.rpm# wget http://mirrors.163.com/centos/6.5/os/i386/Packages/yum-3.2.29-40.el6.centos.noarch.rpm# wget http://mirrors.163.com/centos/6.5/os/i386/Packages/yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm
Install Yum Software Package
Note: A single installation package may depend on other packages (for example, yum and Yum-fastestmirror will depend on each other), so we can put all these packages together, run one command to install them at the same time:
# rpm -ivh yum-metadata-parser-1.1.2-16.el6.i686.rpm yum-3.2.29-40.el6.centos.noarch.rpm yum-3.2.29-40.el6.centos.noarch.rpm
4. Replace the yum source. Use the 163 Source
# cd /etc/yum.repos.d/# wget http://mirrors.163.com/.help/CentOS6-Base-163.repo# vi CentOS6-Base-163.repo
Edit the file, replace all the $ releasever in the file with the version number, that is, 6.5 is last saved! Or directly copy the following memory to the CentOS6-Base-163.repo file (modified)
# 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-6.5 - Base - 163.combaseurl=http://mirrors.163.com/centos/6.5/os/$basearch/#mirrorlist=http://mirrorlist.centos.org/?release=6.5&arch=$basearch&repo=osgpgcheck=1gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6#released updates [updates]name=CentOS-6.5 - Updates - 163.combaseurl=http://mirrors.163.com/centos/6.5/updates/$basearch/#mirrorlist=http://mirrorlist.centos.org/?release=6.5&arch=$basearch&repo=updatesgpgcheck=1gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6#additional packages that may be useful[extras]name=CentOS-6.5 - Extras - 163.combaseurl=http://mirrors.163.com/centos/6.5/extras/$basearch/#mirrorlist=http://mirrorlist.centos.org/?release=6.5&arch=$basearch&repo=extrasgpgcheck=1gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6#additional packages that extend functionality of existing packages[centosplus]name=CentOS-6.5 - Plus - 163.combaseurl=http://mirrors.163.com/centos/6.5/centosplus/$basearch/#mirrorlist=http://mirrorlist.centos.org/?release=6.5&arch=$basearch&repo=centosplusgpgcheck=1enabled=0gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6#contrib - packages by Centos Users[contrib]name=CentOS-6.5 - Contrib - 163.combaseurl=http://mirrors.163.com/centos/6.5/contrib/$basearch/#mirrorlist=http://mirrorlist.centos.org/?release=6.5&arch=$basearch&repo=contribgpgcheck=1enabled=0gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
5. Clear the original Cache
# yum clean all
Rebuild cache to speed up searching and installing software
# yum makecache
6. Update the system
# yum update
Redhat6.5 configure the yum source using centos