“dnf info”输出中显示的“系统”存储库是什么?

“dnf info”输出中显示的“系统”存储库是什么?

我正在温习DNF知识,偶然发现了一些我无法弄清楚的事情。的输出dnf info通常显示某个包属于“系统”存储库:

$ dnf info zip | grep -E ^"Repository|From repo"
Repository   : @System
From repo    : anaconda

我知道“anaconda”意味着该软件包是由 Anaconda 安装程序安装的。我无法理解的是“系统”存储库。我有四个启用的存储库,“系统”不是其中之一:

$ dnf repolist --enabled
repo id                          repo name
appstream                        AlmaLinux 8 - AppStream
baseos                           AlmaLinux 8 - BaseOS
extras                           AlmaLinux 8 - Extras
powertools                       AlmaLinux 8 - PowerTools

我还发现它dnf repoquery -i zip显示了实际的存储库:

$ dnf repoquery -i zip | grep ^Repository
Repository   : baseos

dnf info那么,为什么show的输出zip位于名为“System”的存储库中? “系统”与“BaseOS”相同吗?

答案1

@System”存储库表示您不是从任何存储库而是通过 [手动] 从磁盘上的文件安装的软件包dnf install package.rpm

还有“ @@commandline”存储库,用于通过rpm -i.

相关内容