我正在尝试在没有互联网连接的系统上安装以下工具。
- Node.js 与 npm
- jdk8
- 火狐浏览器
- 脚本式的
为了获取所有依赖项和包,我登录到有互联网连接的系统并使用yum install -downloadonly <package-name>
我预计这会列出所有软件包,但没有,当我尝试在没有互联网的系统中安装软件包时,我遇到了很多依赖项失败。例如,检查下面我尝试安装 Firefox 的位置
以下是我从“downloadonly”获得的依赖项/包列表
nss-3.28.4-15.el7_4.x86_64.rpm
nss-devel-3.28.4-15.el7_4.x86_64.rpm
nss-sysinit-3.28.4-15.el7_4.x86_64.rpm
nss-tools-3.28.4-15.el7_4.x86_64.rpm
rpm -Uvh nss-3.28.4-15.el7_4.x86_64.rpm
warning: nss-3.28.4-15.el7_4.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
error: Failed dependencies:
libnssutil3.so(NSSUTIL_3.21)(64bit) is needed by nss-3.28.4-15.el7_4.x86_64
libnssutil3.so(NSSUTIL_3.24)(64bit) is needed by nss-3.28.4-15.el7_4.x86_64
nspr >= 4.13.1 is needed by nss-3.28.4-15.el7_4.x86_64
nss-pem(x86-64) is needed by nss-3.28.4-15.el7_4.x86_64
nss-softokn(x86-64) >= 3.28.3-4 is needed by nss-3.28.4-15.el7_4.x86_64
nss-util >= 3.28.4-2 is needed by nss-3.28.4-15.el7_4.x86_64
nss = 3.19.1-18.el7 is needed by (installed) nss-sysinit-3.19.1-18.el7.x86_64
nss(x86-64) = 3.19.1-18.el7 is needed by (installed) nss-tools-3.19.1-18.el7.x86_64
两个问题:
- 如何列出工具的所有依赖项?
- 即使我得到了完整的列表,我怎么知道首先要安装什么?
答案1
添加 1. 该命令# yum deplist [package-name]
将列出所有依赖项。看https://linux.die.net/man/8/yum...或使用$ man yum
,如果可用的话。
添加 2. 假设您正在使用默认安装命令(例如嗯) : 即rpm -Uvh [package] [package] [package] [package] [package] [package]
:“rpm”很聪明:无论您如何订购软件包,都会以正确的顺序安装。