Linux

如何知道軟體包是從哪個 yum 儲存庫安裝的?

  • November 11, 2021

在我通過 yum 安裝了一個包後(配置了多個儲存庫),我如何才能找到它是從哪個儲存庫安裝的?

如果我執行yum info package-name(或yum list package-name),我只能看到包已“安裝”。

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.

引用自:https://serverfault.com/questions/62026