在 Amazon Linux AMI 上安装 Fedora 软件包

在 Amazon Linux AMI 上安装 Fedora 软件包

我正在尝试安装 Fedora 软件包,特别是 poppler-utils 版本 0.5x 或更高版本的软件包,但目前仅适用于 Fedora。我对 Amazon Linux AMI 没有太多了解,但根据我的研究,它们大多与 CentOS 软件包兼容。但我不确定是否可以安装 Fedora 软件包,所以我只是想确定一下。

到目前为止我尝试过的:

我尝试下载 fedora 软件包 rpm,上传到 s3,并尝试通过 ebextension 配置进行安装。

commands:
    command: yum -y localinstall https://s3.amazonaws.com/link_to_rpm.rpm

但这没有用。我现在没有日志,但日志上写着“poppler-utils 0.5x 是 poppler-utils 0.26.5 的升级”。错误类似于“require poppler-utils 0.5x”。

有没有办法安装 Fedora 软件包 rpm?我正在从以下位置下载 rpm这里

编辑:添加日志

[Application update .../Command install_poppler-utils] : Activity execution failed, because: Loaded plugins: priorities, update-motd, upgrade-helper
  Examining .../poppler-utils-0.62.0-1.fc28.x86_64.rpm: poppler-utils-0.62.0-1.fc28.x86_64
  Marking .../poppler-utils-0.62.0-1.fc28.x86_64.rpm as an update to poppler-utils-0.26.5-17.17.amzn1.x86_64
  Resolving Dependencies
  --> Running transaction check
  ---> Package poppler-utils.x86_64 0:0.26.5-17.17.amzn1 will be updated
  ---> Package poppler-utils.x86_64 0:0.62.0-1.fc28 will be an update
  --> Processing Dependency: poppler(x86-64) = 0.62.0-1.fc28 for package: poppler-utils-0.62.0-1.fc28.x86_64
  --> Processing Dependency: libpoppler.so.73()(64bit) for package: poppler-utils-0.62.0-1.fc28.x86_64
  --> Finished Dependency Resolution
  Error: Package: poppler-utils-0.62.0-1.fc28.x86_64 (/poppler-utils-0.62.0-1.fc28.x86_64)
  Requires: poppler(x86-64) = 0.62.0-1.fc28
  Installed: poppler-0.26.5-17.17.amzn1.x86_64 (@amzn-main)
  poppler(x86-64) = 0.26.5-17.17.amzn1
  Error: Package: poppler-utils-0.62.0-1.fc28.x86_64 (/poppler-utils-0.62.0-1.fc28.x86_64)
  Requires: libpoppler.so.73()(64bit)
  You could try using --skip-broken to work around the problem
  You could try running: rpm -Va --nofiles --nodigest

答案1

您正在尝试仅安装poppler-utils子包。这需要poppler匹配版本的包。您需要安装这两个。这可能有效(在基于 RHEL7 的系统上通常有效),但最终可能会成为依赖项追逐的兔子洞,即使成功也会导致系统出现弗兰肯斯坦怪物。

为什么不直接使用 Fedora Cloud Base (https://alt.fedoraproject.org/cloud/),哪个有你需要的包版本?

相关内容