[Problem solving] linux cannot be installed with yum

Problems set forth
in the Linux operating environment, common yum install functional modules, such as git, koan, lrzsz, etc., but appears during the installation process often can not find the problem yum install source, making it impossible for proper installation
solution
is usually the case , The download source of yum is saved in the /etc/yum.repos.d/ location, you can view the information in this folder

ll /etc/yum.repos.d/

Insert picture description here
The result of the above figure shows that it contains the basic download source. If there is no content in the folder, you can obtain it through the following methods

cd /etc/yum.repos.d/
wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
yum clean all
yum makecache
yum install epel-release

Guess you like

Origin blog.csdn.net/weixin_44704985/article/details/113971735