1.yum是对rpm包进行安装、管理,首先需要配置源,路径在 /etc/yum.repo.d/
2. 运行 yum install git
一直提示:another app is currently holding the yum lock
①杀死进程②rm -r /var/run/yum.pid
3.运行 yum install git
提示: one of the configured repositories failed (Openstack Mitaka Repository) and yum doesnot have enough cached data to continue.
很明显是源的路径不对,根据提示 yum-config-manager --disable openstack-mitaka
默认的源是在 /etc/yum.repo.d/Centos-Base.repo 中定义的。