RedHat (Little Red Riding Hood) the solution that Yum won't be able to use

Source: Internet
Author: User

Because Redhat is a commercial version, the Yum program is not normally available because it is not registered (under Linux, Yum is an "artifact" that installs the software). The address of the CentOS can be replaced at this time. Here is a step-by-step explanation of how to handle:

First, delete Redhat's own yum related files

1, file location:/etc/yum.conf and/etc/yum.repo.d/rhel-debuginfo.repo;

2, can be deleted by FTP, or directly use the command.

  

Second, reconfigure Yum related files

1, configuration yum.conf, create yum.conf file, and then edit it;

  

Yum.conf content, can be copied directly, as follows:

[main]cachedir=/var/cache/yumkeepcache=1debuglevel=2logfile=/var/log/yum.logpkgpolicy=newestdistroverpkg= redhat-releasetolerant=1exactarch=1obsoletes=1gpgcheck=1plugins=1metadata_expire=1800

Once the paste is finished, you can save it. can be viewed by command, whether consistent.

  

2, configuration Rhel-debuginfo.repo, create Rhel-debuginfo.repo file, and then edit (this article to CentOS5 64-bit address is the subject);

Specific operation, with 1, here only to show the content as follows:

[Base]name=centos-5-basebaseurl=http://centos.ustc.edu.cn/centos/5/os/x86_64/# The other site:# you can find more site In:? id=13enabled=1gpgcheck=1gpgkey=http://centos.ustc.edu.cn/centos/5/os/x86_64/rpm-gpg-key-centos-5#released Updates[update]name=centos-5-updatesbaseurl=http://mirror.centos.org/centos/5/updates/x86_64/gpgcheck=1gpgkey= Http://centos.ustc.edu.cn/centos/5/os/x86_64/RPM-GPG-KEY-CentOS-5#packages used/produced in the build and not Released[addons]name=centos-5-addonsbaseurl=http://mirror.centos.org/centos/5/addons/$basearch/gpgcheck= 1gpgkey=http://centos.ustc.edu.cn/centos/5/os/x86_64/rpm-gpg-key-centos-5#additional packages that could be useful[ Extras]name=centos-5-extrasbaseurl=http://mirror.centos.org/centos/5/extras/$basearch/gpgcheck=1gpgkey=http:// Mirror.centos.org/centos/rpm-gpg-key-centos4#additional packages that extend functionality of existing packages[ Centosplus]name=centos-5-plusbaseurl=http://mirror.centos.org/centos/5/centosplus/$basearch/gpgcheck=1enabled=0gpgkey=http://centos.ustc.edu.cn/centos/5/os/x86_64/rpm-gpg-key-centos-5#contrib-packages by CentOS Users[contrib]name=centos-5-contribbaseurl=http://mirror.centos.org/centos/5/contrib/$basearch/gpgcheck= 1enabled=0gpgkey=http://centos.ustc.edu.cn/centos/5/os/x86_64/rpm-gpg-key-centos-5#packages in testing[testing] Name=centos-5-testingbaseurl=http://mirror.centos.org/centos/5/testing/$basearch/gpgcheck=1enabled=0gpgkey= Http://centos.ustc.edu.cn/centos/5/os/x86_64/RPM-GPG-KEY-CentOS-5

 Note: If 32 is the system, simply replace the x86_64 with the i386.

RedHat (Little Red Riding Hood) the solution that Yum won't be able to use

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.