Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How Redhat Linux RHEL5 configures CentOS YUM update sources

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

How to configure the CentOS YUM update source for Redhat Linux RHEL5, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and easy way.

YUM is a tool for Redhat Linux to install updates and software online, but this is a charging function of RHEL5. If you cannot use RHEL5's update source without purchasing Redhat's service, you will be prompted to register.

Because CentOS is a free Linux version that evolved from Redhat, you can take advantage of CentOS's yum update source to implement RHEL5's YUM functionality. The configuration method is as follows:

Check whether yum is installed, it is installed by default, a total of 4 packages.

[root@linux-a ~] # rpm-qa | grep yum

Yum-metadata-parser-1.0-8.fc6

Yum-3.0.1-5.el5

Yum-rhn-plugin-0.4.3-1.el5

Yum-updatesd-3.0.1-5.el5

Configure yum update source

Create / etc/yum.repos.d/CentOS-Base.repo file to define the yum update source, which is the CentOS update source of Shanghai Jiaotong University.

[root@linux-a ~] # vi / etc/yum.repos.d/CentOS-Base.repo

[base]

Name=CentOS-5-Base

# mirrorlist= http://mirrorlist.centos.org/?release=$releasever5&arch=$basearch&repo=os

# baseurl= http://mirror.centos.org/centos/$releasever/os/$basearch/

Baseurl= http://ftp.sjtu.edu.cn/centos/5/os/$basearch/

Gpgcheck=0

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

# released updates

[update]

Name=CentOS-5-Updates

# mirrorlist= http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=updates

Baseurl= http://ftp.sjtu.edu.cn/centos/5/updates/$basearch/

Gpgcheck=0

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

# packages used/produced in the build but not released

[addons]

Name=CentOS-5-Addons

# mirrorlist= http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=addons

Baseurl= http://ftp.sjtu.edu.cn/centos/5/addons/$basearch/

Gpgcheck=0

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

# additional packages that may be useful

[extras]

Name=CentOS-5-Extras

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

Baseurl= http://ftp.sjtu.edu.cn/centos/5/extras/$basearch/

Gpgcheck=0

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

# additional packages that extend functionality of existing packages

[centosplus]

Name=CentOS-5-Plus

# mirrorlist= http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=centosplus

Baseurl= http://ftp.sjtu.edu.cn/centos/5/centosplus/$basearch/

Gpgcheck=0

Enabled=0

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

# contrib-packages by Centos Users

[contrib]

Name=CentOS-5-Contrib

# mirrorlist= http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=contrib

Baseurl= http://ftp.sjtu.edu.cn/centos/5/contrib/$basearch/

Gpgcheck=0

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=0

Gpgkey= http://ftp.riken.jp/Linux/dag/packages/RPM-GPG-KEY.dag.txt

Import key

[root@linux-a ~] # rpm-- import http://ftp.sjtu.edu.cn/centos/5/os/i386/RPM-GPG-KEY-CentOS-5

Run YUM, test

[root@linux-a ~] # yum install xmms-mp3

Loading "installonlyn" plugin

Loading "rhnplugin" plugin

This system is not registered with RHN.

RHN support will be disabled.

Setting up Install Process

Setting up repositories

Reading repository metadata in from local files

Parsing package install arguments

Resolving Dependencies

-> Populating transaction set with selected packages. Please wait.

-> Package xmms-mp3.i386 1purl 1.2.10-16.el5.rf set to be updated

-> Running transaction check

-- > Processing Dependency: libglib-1.2.so.0 for package: xmms-mp3

-- > Processing Dependency: libgdk-1.2.so.0 for package: xmms-mp3

-- > Processing Dependency: libgthread-1.2.so.0 for package: xmms-mp3

-- > Processing Dependency: libgmodule-1.2.so.0 for package: xmms-mp3

-- > Processing Dependency: libgtk-1.2.so.0 for package: xmms-mp3

-- > Processing Dependency: libxmms.so.1 for package: xmms-mp3

-> Restarting Dependency Resolution with new changes.

-> Populating transaction set with selected packages. Please wait.

-> Package xmms.i386 1purl 1.2.10-14.el5.rf set to be updated

-> Package glib.i386 1purl 1.2.10-20.el5 set to be updated

-> Downloading header for gtk+ to pack into transaction set.

Gtk+-1.2.10-56.el5.i386.r 100% | = | 25 kB 00:00

-> Package gtk+.i386 1purl 1.2.10-56.el5 set to be updated

-> Running transaction check

-- > Processing Dependency: libmikmod.so.2 for package: xmms

-- > Processing Dependency: gdk-pixbuf > = 0.18.0 for package: gtk+

-> Restarting Dependency Resolution with new changes.

-> Populating transaction set with selected packages. Please wait.

-> Downloading header for gdk-pixbuf to pack into transaction set.

Gdk-pixbuf-0.22.0-25.el5. | = | 16 kB 00:00 |

-> Package gdk-pixbuf.i386 1 0.22.0-25.el5 set to be updated

-> Downloading header for mikmod to pack into transaction set.

Mikmod-3.1.6-38.1.i386.rp 100% | = | 7.7 kB 00:00

-> Package mikmod.i386 0RU 3.1.6-38.1set to be updated

-> Running transaction check

Dependencies Resolved

=

Package Arch Version Repository Size

=

Installing:

Xmms-mp3 i386 1VR 1.2.10-16.el5.rf dag 179k

Installing for dependencies:

Gdk-pixbuf i386 1 0.22.0-25.el5 base 231k

Glib i386 1VR 1.2.10-20.el5 base 137k

Gtk+ i386 1VR 1.2.10-56.el5 base 923k

Mikmod i386 3.1.6-38.1base 201k

Xmms i386 1VR 1.2.10-14.el5.rf dag 2.3m

Transaction Summary

=

Install 6 Package (s)

Update 0 Package (s)

Remove 0 Package (s)

Total download size: 3.9 M

Is this ok [y/N]:

This is the answer to the question about how to configure the CentOS YUM update source for Redhat Linux RHEL5. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report