在centos中如何获取已安装存储库的列表?
答案1
您只需键入 yum repolist
,您应该输出类似于
$ yum repolist
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.mirror.constant.com
* extras: centos.mirror.iweb.ca
* updates: centos.mirror.iweb.ca
repo id repo name status
base CentOS-6 - Base 6,346
extras CentOS-6 - Extras 4
updates CentOS-6 - Updates 751
repolist: 7,101
答案2
您可以在这里找到它们:/etc/yum.conf