RedHat Enterprise Linux 6.0 (32-bit) How to Use CentOS YUM...

Source: Internet
Author: User

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

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.