RedHatEnterpriseLinux6.0 (32-bit) how to use CentOSYUM...
Source: Internet
Author: User
RedHatEnterpriseLinux6.0 (32-bit) how to use CentOSYUM... 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 following are details... 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 procedure is as follows: 1. delete the 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 the 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: [base] name = CentOS-$ releasever-Base baseurl = http://mirrors.163.com/centos/ 6.4/OS/$ basearch/gpgcheck = 1 gpgkey = http://mirrors.163.com/centos/ RPM-GPG-KEY-CentOS-6 # released updates [updates] name = CentOS-$ releasever-Updates baseurl = http://mirrors.163.com/centos/ 6.4/updates/$ basearch/gpgcheck = 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 = http://mirrors.163.com/centos/ $ Releasever/addons/$ basearch/# gpgcheck = 1 # gpgkey = http://mirrors.163.com/centos/ RPM-GPG-KEY-CentOS-6 # additional packages that may be useful [extras] name = CentOS-$ releasever-Extras baseurl = http://mirrors.163.com/centos/ 6.4/extras/$ basearch/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 = http://mirrors.163.com/centos/ 6.4/centosplus/$ basearch/gpgcheck = 1 enabled = 0 5, yum clean all 6, yum update 7, yum install vim # Can I use [set a local image as the 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 to add the following content: [rhel_6_iso] name = local iso baseurl = file:///mnt Gpgcheck = 1 gpgkey = file:///mnt /RPM-GPG-KEY-redhat-release
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.