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 to use Yum for CentOS6 that stops maintenance

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

Share

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

This article will explain in detail how to use Yum for CentOS6 that stops maintenance. The content of the article is of high quality, so the editor shares it for you as a reference. I hope you will have some understanding of the relevant knowledge after reading this article.

It has been more than half a year since CentOS 6 finished entering EOL (Reaches End of Life) in November 2020. due to historical reasons, some projects cannot be migrated to the 7+ system, but the yum source still needs to be used. The official CentOS 6 related software source was officially moved out of the official source on December 2, 2020, and then it was gradually deleted by various mirrors.

At present, the use of yum has been unable to update normally, the resources are all 404

The official provides a vault source to provide images of all historical CentOS versions, but the official use of aws North American service is very poor. Domestic Ali and Tencent also provide vault source, which is more convenient to use in China.

CentOS official: https://vault.centos.org/

Ali Cloud Image: https://mirrors.aliyun.com/centos-vault/

Tencent Cloud Image: https://mirrors.cloud.tencent.com/centos-vault

Now you need to modify CentOS-Base.repo manually. In CentOS-Base.repo, there are three areas that need to be modified. In the original CentOS-Base.repo, the directory is centos, which needs to be replaced with centos-vault.

Releasever originally represents the distribution version of the current system, usually only the large version number, that is, 6. Here, you need to modify it according to your own system version and check it through cat / etc/redhat-release.

$basearch is originally the hardware architecture of the system, such as i386, x86room64, arm, etc. It usually does not need to be modified. If you need to check it, you can check it through the arch command.

Through batch modification, change centos to centos-vault,$releasever to version number such as 6.10, save CentOS-Base.repo, and then execute yum clean all to clear the previous yum cache and re-yum makecache.

Now the yum source can work properly, but it can only guarantee the basic use, after all, it has lost the official update and maintenance, so it is best to update to the new version as soon as possible.

In addition, if you feel that Ali and Tencent feeds are unreliable and are not available one day, you can make a local source by yourself. How to synchronize is explained in detail in http://vault.centos.org/readme.txt. Create a directory that needs to be synchronized locally, and then execute the following command to synchronize automatically.

Rsync-a-v-- exclude=debug-- exclude=x86_64 rsync://archive.kernel.org/centos-vault/6.10/ / data/centos-vault/6.10/

Because it is a foreign resource, the synchronization time and stability depend on your own network conditions, and then you can automatically synchronize updates through scheduled tasks.

On how to stop the maintenance of CentOS6 how to use Yum to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

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