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 change the Linux yum source

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article mainly introduces "how to change the Linux yum source". In the daily operation, I believe many people have doubts about how to change the Linux yum source. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful for you to answer the doubts about "how to change the Linux yum source"! Next, please follow the editor to study!

Writing background

After installing CentOS6.3, in order to avoid the slow installation of updates from foreign sites, we need to change the yum update source, so I found a way to change the linux yum source from the Internet and shared it with you. The principle is very simple, is to change the update source in the yum configuration file, here directly use the configuration file in the 163mirror site.

Change method

1. Enter the yum configuration file directory

Cd / etc/yum.repos.d/

2. Back up the configuration file

Mv CentOS-Base.repo CentOS-Base.repo.bak

3. Download the configuration of 163

Wget http://mirrors.163.com/.help/CentOS6-Base-163.repo, the downloaded file is called CentOS6-Base-163.repo

4. Change the name

Mv CentOS6-Base-163.repo CentOS-Base.repo

5. Update the database

Yum update at this point, the study on "how to change the Linux yum source" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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

  • The implementation method of modifying tomcat running version and Port by Maven

    Maven uses tomcat6 to run projects by default. In this section, maven is asked to use tomcat7 to add

    © 2024 shulou.com SLNews company. All rights reserved.

    12
    Report