RedHat Linux Enterprise 5 Yum configuration)

Source: Internet
Author: User

First, the rhel5 system has been installed with Yum, because if you use an official website to update the yum, it will prompt registration and so on unless you have bought rhel5. So you just need
Change the yum update address to an open-source one. The files with the specified Yum update address are in/etc/yum. Repos. d. Change themBackup FileAdd. Bak.

[Root @ localhost ~] # Mv/etc/yum. Repos. d/rhel-debuginfo.repo/etc/yum. Repos. d/rhel-debuginfo.repo.bak

[Root @ localhost yum. Repos. d] # vi rhel-debuginfo.repo
[Base]

CentOS-5-Base

# Items list = http://mirrorlist.centos.org /? Release = $ releasever5 & arch = $ basearch &
Repo = OS

# Baseurl = http://developer.centos.org/centos/?releasever/ OS /?basearch/
Baseurl = http://ftp.sjtu.edu.cn/centos/5/ OS /?basearch/
Gpgcheck = 1

Gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

# Released updates

[Update]

CentOS-5-Updates

# Items list = http://mirrorlist.centos.org /? Release = 4 & arch = $ basearch & repo = updates
Baseurl = http://ftp.sjtu.edu.cn/centos/5/updates/?basearch/
Gpgcheck = 1

Gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

# Packages used/produced in the build but not released

[Addons]

CentOS-5-Addons

# Items list = http://mirrorlist.centos.org /? Release = 4 & arch = $ basearch & repo = Addons

Baseurl = http://ftp.sjtu.edu.cn/centos/5/addons/?basearch/
Gpgcheck = 1

Gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

# Additional packages that may be useful

[Extras]

Name = CentOS-5-extras

# Items list = http://mirrorlist.centos.org /? Release = 4 & arch = $ basearch & repo = extras

Baseurl = http://ftp.sjtu.edu.cn/centos/5/extras/?basearch/
Gpgcheck = 1

Gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

# Additional packages that extend functionality of existing packages

[Centosplus]

CentOS-5-plus

# Items list = http://mirrorlist.centos.org /? Release = 4 & arch = $ basearch & repo = centosplus
Baseurl = http://ftp.sjtu.edu.cn/centos/5/centosplus/?basearch/
Gpgcheck = 1

Enabled = 0

Gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

# Contrib-packages by centos users

[Contrib]

Name = CentOS-5-contrib

# Items list = http://mirrorlist.centos.org /? Release = 4 & arch = $ basearch & repo = contrib
Baseurl = http://ftp.sjtu.edu.cn/centos/5/contrib/?basearch/
Gpgcheck = 1

Enabled = 0

Gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

# Vi Dag. Repo

[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

After editing, save and exit ..

Summary: The yum source configuration file is changed. In the past, the yum configuration update of Enterprise Linux was directed to the RedHat official website and needs to be registered.

Now, you only need to reconfigure the website to an open-source website.

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.