Last update at :2024-01-30,Edit by888u
I just shared two alternative versions of the CentOS system a few days ago. Unexpectedly, I received a text message from Alibaba Cloud today, informing me that CentOS 8 has ended its life cycle, and it is recommended to switch to the CentOS-Vault source as soon as possible. The CentOS system installed on the Banwagonhost VPS should be the same, so here I will share the method of switching to the CentOS Vault source.
Configuring CentOS-Vault source tutorial
The following is the text message:
The CentOS 8 operating system version has ended its life cycle, and the Alibaba Cloud mirror station has also removed the corresponding mirror source. If your business still needs to use some installation packages in CentOS 8 during the transition period, it is recommended to switch to the CentOS-Vault source. Please click here for specific configuration.
Notice: The CentOS 8 operating system version has reached end of life (EOL), and the Linux community no longer maintains this operating system version. It is recommended that you switch to Anolis or Alinux. If your business still needs to use some installation packages in the CentOS 8 system during the transition period, please switch the source of CentOS 8 as follows.
1. Backup
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup2. Download the new CentOS-Base.repo to /etc/yum.repos.d/
CentOS 8 (CentOS 8 official source has been offline, it is recommended to switch to CentOS-Vault source)
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repoor
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repoCentOS 6 (CentOS 6 official source is offline, it is recommended to switch to CentOS-Vault source)
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-6.10.repoor
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-6.10.repoCentOS 7
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repoor
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo3. Run yum makecache to generate cache
4. Others
Non-Alibaba Cloud ECS users will see the message Couldn't resolve host 'mirrors.cloud.aliyuncs.com', which does not affect use. Users can also modify relevant configurations themselves: eg:
sed -i -e '/mirrors.cloud.aliyuncs.com/d' -e '/mirrors.aliyuncs.com/d' /etc/yum.repos.d/CentOS-Base.repoHow to switch sources after CentOS 8 ends its life cycle
Use the following command:
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo yum clean all && yum makecacheAt present, I see some comments under the official documentation page that may point out that there may be some actual problems. It is recommended that if you encounter problems, you can refer to the comments below the official documentation to solve them.
Recommended plan for bricklayers
Warm reminder: If you have difficulty choosing, just choose the CN2 GIA-E plan in the middle. The quarterly payment is $49.99, and you can switch between up to 12 computer rooms at will.CN2 (cheapest) | 1GB | 1 core | 20GB | 1TB | 1Gbps | DC3 CN2 DC8 ZNET | $49.99/year | Buy |
CN2 | 2GB | 1 core | 40GB | 2TB | 1Gbps | $52.99/half year $99.99/year | Buy | |
CN2 GIA-E (Most recommended) | 1GB | 2 cores | 20GB | 1TB | 2.5Gbps | DC6 CN2 GIA-E DC9 CN2 GIA Japan SoftBank JPOS_1 Netherlands EUNL_9 | $49.99/quarter $169.99/year | Buy |
CN2 GIA-E | 2GB | 3 core | 40GB | 2TB | 2.5Gbps | $89.99/quarter $299.99/year | Buy | |
HK | 2GB | 2 cores | 40GB | 0.5TB | 1Gbps | Hong Kong, China CN2 GIA | $89.99/month $899.99/year | Buy |
HK | 4GB | 4 core | 80GB | 1TB | 1Gbps | $155.99/month $1559.99/year | Buy | |
TOKYO | 2GB | 2 cores | 40GB | 0.5TB | 1.2Gbps | Tokyo, Japan CN2 GIA | $89.99/month $899.99/year | Buy |
TOKYO | 4GB | 4 core | 80GB | 1TB | 1.2Gbps | $155.99/month $1559.99/year | Buy | |
Select a suggestion:
- Getting started: Los Angeles CN2 package, currently the cheapest, optional CN2 GT computer room, the entry-level choice.
- Recommendation: Los Angeles CN2 GIA-E package, super fast, with many optional computer rooms (DC6, DC9, Japan SoftBank, Netherlands Unicom, etc.), the most cost-effective.
- High-end: Hong Kong CN2 GIA package, the price is higher, but impeccable. The Tokyo CN2 GIA package is also a very good high-end option.
Recommended site search: Ministry of Industry and Information Technology website registration system, registered domain name, free linux host, cloud virtual host, Wanwang free domain name, cloud server rental, US anti-attack server, registered domain name query, cancellation registration, Hong Kong high-defense server,
发表评论