如何在redhat/ubi8中安装gettext-devel

发布于 2025-01-11 06:27:27 字数 1010 浏览 0 评论 0原文

我有一个 docker 文件,我想在其中安装 gettext-devel

FROM redhat/ubi8
RUN yum install gettext-devel

但它不起作用:

Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

Red Hat Universal Base Image 8 (RPMs) - BaseOS                                                                                                           3.3 MB/s | 797 kB     00:00    
Red Hat Universal Base Image 8 (RPMs) - AppStream                                                                                                        7.0 MB/s | 2.6 MB     00:00    
Red Hat Universal Base Image 8 (RPMs) - CodeReady Builder                                                                                                120 kB/s |  16 kB     00:00    
No match for argument: gettext-devel
Error: Unable to find a match: gettext-devel

如何安装此软件包?

I have a docker file where I want to install gettext-devel

FROM redhat/ubi8
RUN yum install gettext-devel

which does not work:

Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

Red Hat Universal Base Image 8 (RPMs) - BaseOS                                                                                                           3.3 MB/s | 797 kB     00:00    
Red Hat Universal Base Image 8 (RPMs) - AppStream                                                                                                        7.0 MB/s | 2.6 MB     00:00    
Red Hat Universal Base Image 8 (RPMs) - CodeReady Builder                                                                                                120 kB/s |  16 kB     00:00    
No match for argument: gettext-devel
Error: Unable to find a match: gettext-devel

How can this package be installed?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

热风软妹 2025-01-18 06:27:27

这是一个简单的方法:

dnf install https://vault.centos.org/8-stream/BaseOS/x86_64/os/Packages/gettext-devel-0.19.8.1-17.el8.x86_64.rpm https://vault.centos.org/8-stream/BaseOS/x86_64/os/Packages/gettext-common-devel-0.19.8.1-17.el8.noarch.rpm

但请注意,它会使您的容器成为非 UBI 容器,这会影响您可以用它做什么。

Here's a simple way:

dnf install https://vault.centos.org/8-stream/BaseOS/x86_64/os/Packages/gettext-devel-0.19.8.1-17.el8.x86_64.rpm https://vault.centos.org/8-stream/BaseOS/x86_64/os/Packages/gettext-common-devel-0.19.8.1-17.el8.noarch.rpm

but note that it makes your container non-UBI container, which influnces what you can do with it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文