RedHat Enterprise Linux 6.0 (32-bit) How to Use CentOS YUM... because the redhat yum online update is charged, it cannot be used if it is not registered. to use it, you need to uninstall the redhat yum, restart the installation, and configure other sources, the detailed process is as follows: 1. Delete redhat original yum rpm-aq | grep yum | xargs rpm-e -- nodeps 2. Download the yum Installation File wget http://tel.mirrors.163.com/centos/6.4/ OS /i386/Packages/yum-3.2.29-40.el6.centos.noarch.rpm wget http://tel.mirrors.163.com/centos/6.4/ OS /i386/Packages/yum-metadata-parser-1.1.2-16.el6.i686.rpm wget http://tel.mirrors.163.com/centos/6.4/ OS /i386/Packages/yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm wget http://tel.mirrors.163.com/centos/6.4/ OS /i386/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm 3. Install yum 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-40.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm note that the last two packages must be installed simultaneously, otherwise, they will depend on each other. 4. Update the repo file mv/etc/yum. repos. d/rhel-debuginfo.repo/etc/yum. repos. d/rhel-debuginfo.repo.repo.bak vi/etc/yum. repos. d/rhel-debuginfo.repo content is: [base] name = CentOS-$ releasever-Base baseurl = paigpgcheck = 1 gpgkey = http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6 # released updates [updates] name = CentOS-$ releasever-Updates baseurl = paigpgcheck = 1 gpgkey = http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6 # packages used/produced in the build but not released # [addons] # name = CentOS-$ releasever-Addons # baseurl = signature # gpgcheck = 1 # gpgkey = http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6 # export packages that may be useful [extras] name = CentOS-$ releasever-Extras baseurl = export gpgcheck = 1 gpgkey = http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6 # additional packages that extend functionality of existing packages [centosplus] name = centOS-$ releasever-Plus baseurl = export gpgcheck = 1 enabled = 0 5, yum clean all 6, yum update 7, yum install vim # Can I use [set local image yum Source: 1. mkdir/mnt/cdrom 2 mount/dev/cdrom/mnt # The image is hung, CD 3 vi/etc/yum. repos. d/rhel-debuginfo.repo # edit repo file Add the following content: [rhel_6_iso] name = local iso baseurl = file: // mnt gpgcheck = 1 gpgkey = file: /// mnt/RPM-GPG-KEY-redhat-release