【问题标题】:Install RPM package from Artifactory [closed]从 Artifactory 安装 RPM 包
【发布时间】:2019-11-02 08:34:32
【问题描述】:

我正在尝试在linux中安装rpm包,并且该包存储在artifactory中。

我使用的命令:

rpm -ihv --nodeps --force https:/artifactory.com/myrpm.rpm

我收到“传输失败”错误消息,这是预期的,因为工件网站需要身份验证。 (用户名密码)。

发现有一个命令'curl'。如果这是正确的解决方案,如何使用此命令?

【问题讨论】:

    标签: linux artifactory rpm


    【解决方案1】:

    您可以尝试按照this answer在URL中传递用户名和密码:

    $ rpm -ihv --nodeps --force https://<username>:<password>@artifactory.com/myrpm.rpm
    

    使用 curl 的步骤将按照 this answer:

    $ curl -u <username>:<password> https://artifactory.com/myrpm.rpm
    $ rpm -ihv --nodeps ./myrpm.rpm
    

    【讨论】:

      猜你喜欢
      • 2017-11-19
      • 2012-12-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-06-13
      相关资源
      最近更新 更多