Dependencies 安装rpm软件包时自动安装依赖项

Dependencies 安装rpm软件包时自动安装依赖项,dependencies,installation,rpm,Dependencies,Installation,Rpm,我是Centos的新手,我想知道如何安装带有所有it依赖项的rpm软件包 例如: 当我尝试使用以下工具安装它时: rpm -Uvh deepin-screenshot-4.0.10.4-4.fc29.x86_64.rpm 我有一个依赖项错误: attention : deepin-screenshot-4.0.10.4-4.fc29.x86_64.rpm: Entête V3 RSA/SHA256 Signature, clé ID 429476b4: NOKEY erreur : Dépen

我是Centos的新手,我想知道如何安装带有所有it依赖项的rpm软件包

例如:

当我尝试使用以下工具安装它时:

rpm -Uvh deepin-screenshot-4.0.10.4-4.fc29.x86_64.rpm
我有一个依赖项错误:

attention : deepin-screenshot-4.0.10.4-4.fc29.x86_64.rpm: Entête V3 RSA/SHA256 Signature, clé ID 429476b4: NOKEY
erreur : Dépendances requises:
    libQt5Core.so.5(Qt_5.11)(64bit) est nécessaire pour deepin-screenshot-4.0.10.4-4.fc29.x86_64
    libdtkcore.so.2()(64bit) est nécessaire pour deepin-screenshot-4.0.10.4-4.fc29.x86_64
    libdtkwidget.so.2()(64bit) est nécessaire pour deepin-screenshot-4.0.10.4-4.fc29.x86_64
    libdtkwm.so.2()(64bit) est nécessaire pour deepin-screenshot-4.0.10.4-4.fc29.x86_64

您无法在CentOS上安装Fedora 29软件包(fc29后缀)。您需要找到正在安装的RPM的CentOS版本,或者从源代码重新构建它


之后,您可以使用
yum
处理依赖项跟踪。

您需要使用yum安装rpm\u名称。
sudo-yum安装deepin-screenshot-4.0.10.4-4.fc29.x86_64.rpm

rpm命令不会从internet下载依赖项,而yum会

此外,命令中的Uvh参数表示卸载、详细、散列。
因此,您正在尝试使用上述命令卸载RPM,而不是安装它。

salt!也许能帮上忙?谢谢你的反馈Joey但我已经试过了但没有成功:(