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

Yum source update

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

Share

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

1. Check whether wget is installed and how to install and uninstall wget

Rpm-qa | grep "wget"

Yum install-y wget installation

Yum remove-y wget Uninstall

two。 Backup / etc/yum.repos.d/CentOS-Base.repo

Cd / etc/yum.repos.d

Mv CetOS-Base.repo CentOS-Base.repo.bk

3. Download the new CentOS-Base.repo to / etc/yum.repos.d/

Just use one of the following sources, and choose one of the three commands

/ / Update to the source of Ali Cloud

Wget-O / etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

/ / Source updated to 163

Wget-O / etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS-Base-163.repo

/ / updated as the source of Sohu

Wget-O / etc/yum.repos.d/CentOS-Base.repo http://mirrors.sohu.com/help/CentOS-Base-sohu.repo

4. Run yum makecache to generate cache

Yum clean all

Yum makecache

5 update the system

Yum-y update

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