Configure the yum source of RHEL 5

Source: Internet
Author: User
Many of the RHEL we bought on the market are pirated, and there is no way to update them online, that is, not yum.
Solution:
Rpm-Qa yum
Get:
Yum-3.0.5-1.el5.
You can see that the yum software has been installed, uninstall it,
Rpm e yum-3.0.5-1.el5
Then we download a new Yum URL that we can use:
Http://ftp.nara.wide.ad.jp/pub/Linux/centos/5.1/ OS /x86_64/CentOS/yum-3.0.5-1.el5.centos.5.noarch.rpm
After the installation, set the yum Source:
Vim/etc/yum. Repos. d/CentOS-Base.repo
Add as follows:
[Base]
Name = centos-$ releasever-Base

Baseurl = http://ftp.nara.wide.ad.jp/pub/linux/centos/5.1/ OS /?basearch/
Gpgcheck = 1
# Released updates
[Update]
Name = centos-$ releasever-Updates
Baseurl = http://ftp.nara.wide.ad.jp/pub/linux/centos/5.1/updates/#basearch/
Gpgcheck = 1
# Packages used/produced in the build but not released
[Addons]
Name = centos-$ releasever-Addons
Baseurl = http://ftp.nara.wide.ad.jp/pub/linux/centos/5.1/addons/?basearch/
Gpgcheck = 1
# Additional packages that may be useful
[Extras]
Name = centos-$ releasever-extras
Baseurl = http://ftp.nara.wide.ad.jp/pub/linux/centos/5.1/extras/?basearch/
Gpgcheck = 1

Vim/etc/yum. Repos. d/Dag. Repo
Add as follows:
[Dag]
Name = Dag RPM repository for rhel5
Baseurl = http://ftp.riken.jp/linux/dag/redhat/el5/en/?basearch/dag/
Enabled = 1
Gpgcheck = 1
Gpgkey = http://ftp.riken.jp/Linux/dag/packages/RPM-GPG-KEY.dag.txt

Try again.

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.