如何知道从哪个yum存储库安装了一个包?

Modified on: Wed, 13 Nov 2019 17:00:02 +0800

我通过yum安装了一个包(配置了多个存储库)后,如何找到已安装的存储库?

如果我运行yum info package-name(或yum list package-name),我只能看到该软件包已“安装”。

作者:techraf,lg.

最佳答案

安装了yum-utils后,repoquery将提供您寻找的信息(这里'epel'是存储库)。

└─[$]> repoquery -i cherokee Name : cherokee Version : 0.99.49 Release : 1.el5 Architecture: i386 Size : 8495964 Packager : Fedora Project Group : Applications/Internet URL : http://www.cherokee-project.com/ Repository : epel Summary : Flexible and Fast Webserver Description : Cherokee is a very fast, flexible and easy to configure Web Server. It supports the widespread technologies nowadays: FastCGI, SCGI, PHP, CGI, TLS and SSL encrypted connections, Virtual hosts, Authentication, on the fly encoding, Apache compatible log files, and much more.


相关问答

添加新评论