我怎么知道什么需要 yum 安装这些依赖项?

How can I know what requires yum to install those dependencies?

yum update 我得到以下信息:

 kernel-modules-extra              x86_64 3.18.7-100.fc20                       @updates/20
                                                                                        8.3 M
Installing for dependencies:
 GeoIP-GeoLite-data                noarch 2015.04-1.fc21                        updates 347 k
 GeoIP-GeoLite-data-extra          noarch 2015.04-1.fc21                        updates  23 M
 R-core                            x86_64 3.1.3-1.fc21                          updates  48 M
 R-core-devel                      x86_64 3.1.3-1.fc21                          updates 100 k
 dleyna-connector-dbus             x86_64 0.2.0-4.fc21                          updates  24 k
 dleyna-core                       x86_64 0.4.0-3.fc21                          fedora   30 k
 dleyna-server                     x86_64 0.4.0-7.fc21                          updates  70 k
 geoipupdate                       x86_64 2.2.1-2.fc21                          updates  33 k
 lz4                               x86_64 r128-2.fc21                           updates  68 k

我想知道什么需要 R-core 因为我自己构建它并且不想安装它...必须有一些我必须删除...

rpm -q --whatrequires R-core可能会告诉你。

如果不是,则可能是库或二进制依赖项,因此您需要 运行 yum whatrequires 在 [= 的输出中列出的各种 libraries/binaries 12=] and/or rpm -ql R-core.

话虽这么说,您自己构建 R 的事实在这种情况下对您没有帮助,因为 rpm 对此一无所知(也不太可能安装在官方 Fedora 软件包可以安装的位置)使用).

如果您自己将 R 构建为 rpm,您也许能够正​​确地满足这种依赖性(无论它是什么)。