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 RHEL5.3 uses CentOS5.3 's update source

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

Share

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

This article focuses on "how RHEL5.3 uses the update source of CentOS5.3". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how RHEL5.3 uses the update source of CentOS5.3.

Friends who have used RHEL know that it is a very stable LINUX distribution and an industry-level product. It is precisely because of its conservative application that many beginners find it difficult to adapt. The problem is the installation of the software. Although the YUM tool is also very convenient, only users who have signed up for RHN can really enjoy the VIP level and easy installation. Although building a local update library for YUM is also a way, it is not the same as RHN.

It is said that the source of CentOS is synchronized with RHN, and CentOS is the sibling produced by the recompilation of RHEL source code, so many people are wondering if they can set the update of RHEL to the source of CentOS. Of course, because CentOS is actually a recompiled RHEL, everything is almost the same, and the question of which is more worthy of user choice will not be discussed here. What I'm going to talk about here is how to get RHEL5 to use CentOS's update source.

First of all, let's introduce my environment:

RHEL5.3

The Source of Huazhong University of Science and Technology: http://centos.ustc.edu.cn/CentOS-Base.repo.5

To use the source of CentOS, you have to remove or disable the update source of RHEL, and you need to remove the YUM tool that comes with RHEL5.

# cd / etc/yum.repos.d

# mv rhel-debuginfo.repo rhel-debuginfo.repo.bak

Back it up here for unexpected recovery, delete other relevant source settings, or back up using the above method.

Delete YUM and YUM components that come with RHEL5

Use rpm-qa | grep yum to list all related packages and delete them. If they cannot be deleted due to dependencies, delete them using the-- nodeps parameter.

Here's how to set up the CentOS source:

First, we need to download and install the YUM tool for CentOS, using the following two packages:

I will just rpm instead of downloading.

# rpm-ivh http://centos.ustc.edu.cn/centos/5.3/os/i386/CentOS/yum-3.2.19-18.el5.centos.noarch.rpm-- nodeps

# rpm-ivh http://centos.ustc.edu.cn/centos/5.3/os/i386/CentOS/yum-metadata-parser-1.1.2-2.el5.i386.rpm-- nodeps

When the YUM tool installation is complete, the following can set the source of YUM. At present, the fastest source in China is the University of Science and Technology of China. As for whether to choose other sources, it is a matter of opinion.

Download the source profile:

# wget http://centos.ustc.edu.cn/CentOS-Base.repo.5

# mv CentOS-Base.repos.5 / etc/yum.repos.d/CentOS-Base.repo

In this configuration file, there are some things that need to be changed, otherwise you cannot connect to the server to update. There is a variable-- $releasever, which represents the version number of the system. This article is based on version 5.3, so you need to change the names of all variables in the configuration file to 5.3. Here you will use a sed syntax.

# vim / etc/yum.repos.d/CentOS-Base.repo

: 1 minute% s _ Universe _ release _ always _ _ 5.3 _

Just save and exit.

At this point, the problem of RHEL5.3 using CentOS sources is solved.

But there is one place that needs to be mentioned. There is a solution written by many experts on the Internet that says to upgrade using a set source, such as # yum update.

What I'm trying to say is, if you like the interface and appearance of RHEL, don't try it lightly, or you'll regret it, because it will make your system the same as CentOS, only retaining the original kernel, but not as the default startup item. In other words, you have installed a RHEL5.3 kernel in centos5.3. Although the two kernels are the same, isn't it against the original intention to separate them because of their different names?

So, if you mind, please don't be lazy and operate on which software you need to upgrade or install, which is why we set up this source.

At this point, I believe you have a deeper understanding of "how RHEL5.3 uses CentOS5.3 's update source". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

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