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

Configure a network yum source

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

Share

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

Sometimes the server needs to download some software, which is not found in the local yum source, so you need to configure the network yum source.

# cd / etc/yum.repos.d/

Back up the configuration file in this directory and rename it, or change the enabled=1 in the file to enabled=0.

Wget-O / etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.reposed-I's Universe release Evermax 6max / etc/yum.repos.d/CentOS-Base.repoyum clean all & & yum makecache fastyum list

The above is to configure RHEL6.5, and the following is to configure RHEL7.2

Wget-O / etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.reposed-I's Universe release release etc/yum.repos.d/CentOS-Base.repoyum clean allyum list

Aliyun's network yum source is generally enough; you can exchange it with other url sources.

And Sohu's http://mirrors.sohu.com, http://centos.ustc.edu.cn of China University of Science and Technology.

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