虽然 rpm 知道每个归档文件所需的依赖关系,但不知道在哪里找到它们。这是设计使然:rpm 仅适用于本地文件,必须具体告知它们的位置。因此,如果你尝试安装单个 RPM 软件包,则 rpm 找不到该软件包的运行时依赖项时就会出错。本示例尝试安装从 Fedora 软件包集中下载的软件包:
$ ls python3-elephant-0.6.2-3.fc30.noarch.rpm -
$ rpm -qpi python3-elephant-0.6.2-3.fc30.noarch.rpm Name : python3-elephant Version : 0.6.2 Release : 3.fc30 Architecture: noarch Install Date: (not installed) Group : Unspecified Size : 2574456 License : BSD Signature : (none) Source RPM : python-elephant-0.6.2-3.fc30.src.rpm Build Date : Fri 14 Jun 2019 17:23:48 BST Build Host : buildhw-02.phx2.fedoraproject.org Relocations : (not relocatable) Packager : Fedora Project Vendor : Fedora Project URL : http://neuralensemble.org/elephant Bug URL : https://bugz.fedoraproject.org/python-elephant Summary : Elephant is a package for analysis of electrophysiology data in Python Description : Elephant - Electrophysiology Analysis Toolkit Elephant is a package for the analysis of neurophysiology data, based on Neo. -
$ rpm -qp --requires python3-elephant-0.6.2-3.fc30.noarch.rpm python(abi) = 3.7 python3.7dist(neo) >= 0.7.1 python3.7dist(numpy) >= 1.8.2 python3.7dist(quantities) >= 0.10.1 python3.7dist(scipy) >= 0.14.0 python3.7dist(six) >= 1.10.0 rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(PayloadIsXz) <= 5.2-1 -
$ sudo rpm -i ./python3-elephant-0.6.2-3.fc30.noarch.rpm error: Failed dependencies: python3.7dist(neo) >= 0.7.1 is needed by python3-elephant-0.6.2-3.fc30.noarch python3.7dist(quantities) >= 0.10.1 is needed by python3-elephant-0.6.2-3.fc30.noarch
(编辑:ASP站长网)
|