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 reinstall yum source under CentOS

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article mainly explains "how to reinstall yum source under CentOS". The explanation content in this article is simple and clear, easy to learn and understand. Please follow the idea of Xiaobian slowly and deeply to study and learn "how to reinstall yum source under CentOS" together!

Enter the following commands in SSH:

1, Download the latest yum-3.2.28.tar.gz and extract

wget http://yum.baseurl.org/download/3.2/yum-3.2.28.tar.gz

tar xvf yum-3.2.28.tar.gz

2. Enter directory and run installation

cd yum-3.2.28

yummain.py install yum

Error: Error accessing file for config file://etc/

Later, Brother Cat reminded me that it was a lack of configuration files. Create a new yum.conf file under the etc directory, and then run yummain.py install yum again to complete the installation successfully.

3. Finally update the system. All done. End of story.^_^

yum check-update

yum update

yum clean all

Thank you for reading, the above is the content of "how to reinstall yum source under CentOS", after learning this article, I believe everyone has a deeper understanding of how to reinstall yum source under CentOS, and the specific use situation needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!

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