|
虽然 rpm 知道每个归档文件所需的依赖关系,但不知道在哪里找到它们。这是设计使然:rpm 仅适用于本地文件,必须具体告知它们的位置。因此,如果你尝试安装单个 RPM 软件包,则 rpm 找不到该软件包的运行时依赖项时就会出错。本示例尝试安装从 Fedora 软件包集中下载的软件包:
$ lspython3-elephant-0.6.2-3.fc30.noarch.rpm-
$ rpm -qpi python3-elephant-0.6.2-3.fc30.noarch.rpmName : python3-elephantVersion : 0.6.2Release : 3.fc30Architecture: noarchInstall Date: (not installed)Group : UnspecifiedSize : 2574456License : BSDSignature : (none)Source RPM : python-elephant-0.6.2-3.fc30.src.rpmBuild Date : Fri 14 Jun 2019 17:23:48 BSTBuild Host : buildhw-02.phx2.fedoraproject.orgRelocations : (not relocatable)Packager : Fedora ProjectVendor : Fedora ProjectURL : http://neuralensemble.org/elephantBug URL : https://bugz.fedoraproject.org/python-elephantSummary : Elephant is a package for analysis of electrophysiology data in PythonDescription :Elephant - Electrophysiology Analysis Toolkit Elephant is a package for theanalysis of neurophysiology data, based on Neo.-
$ rpm -qp --requires python3-elephant-0.6.2-3.fc30.noarch.rpmpython(abi) = 3.7python3.7dist(neo) >= 0.7.1python3.7dist(numpy) >= 1.8.2python3.7dist(quantities) >= 0.10.1python3.7dist(scipy) >= 0.14.0python3.7dist(six) >= 1.10.0rpmlib(CompressedFileNames) <= 3.0.4-1rpmlib(FileDigests) <= 4.6.0-1rpmlib(PartialHardlinkSets) <= 4.0.4-1rpmlib(PayloadFilesHavePrefix) <= 4.0-1rpmlib(PayloadIsXz) <= 5.2-1-
$ sudo rpm -i ./python3-elephant-0.6.2-3.fc30.noarch.rpmerror: 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
(编辑:邯郸站长网)
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!
|