查看centos 系统是否有yum源
发布网友
发布时间:2022-02-27 08:21
我来回答
共2个回答
热心网友
时间:2022-02-27 09:50
以下命令行可以获取当前系统有效的repolist,举例:
$ yum repolist
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.pubyun.com
* extras: mirrors.pubyun.com
* updates: mirrors.pubyun.com
repo id repo name status
!base/7/x86_ CentOS-7 - Base 9,007
!extras/7/x86_ CentOS-7 - Extras 265
!updates/7/x86_ CentOS-7 - Updates 1,401
repolist: 10,673
热心网友
时间:2022-02-27 11:08
cd /etc/yum.repos.d/
ls