在 RHEL 8 上安装 Nginx 1.18(通过 AppStream)

首先

使用Application Stream (AppStream) 在RHEL8上安装Nginx 1.18。
参考资料:RHEL8的软件包配置 – BaseOS和Application Stream – Red Hat工程师博客
第4章 新功能 Red Hat Enterprise Linux 8 | Red Hat 客户门户

支持

如果使用这种方法进行引入,根据红帽企业版 Linux 8 应用流生命周期 – 红帽客户门户的信息,2022年11月可能被认为已经过期(EOL)。
之后可能不会进行对报道的漏洞和问题的修复。

日志

安装

# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.3 (Ootpa)

# yum module install nginx:1.18
... 略

各种确认 (gè

# which nginx
/usr/sbin/nginx

# nginx -v
nginx version: nginx/1.18.0

# yum module info nginx:1.18
Updating Subscription Management repositories.
Unable to read consumer identity
Subscription Manager is operating in container mode.
Last metadata expiration check: 0:01:21 ago on Fri Nov  6 14:20:28 2020.
Modular dependency problem:

 Problem: module php:7.2:820181215112050:76554e01-0.x86_64 requires module(nginx:1.14), but none of the providers can be installed
  - module nginx:1.14:820181214004940:9edba152-0.x86_64 conflicts with module(nginx:1.18) provided by nginx:1.18:8030020200529144723:30b713e6-0.x86_64
  - module nginx:1.18:8030020200529144723:30b713e6-0.x86_64 conflicts with module(nginx:1.14) provided by nginx:1.14:820181214004940:9edba152-0.x86_64
  - module nginx:1.14:8000020190830002848:f8e95b4e-0.x86_64 conflicts with module(nginx:1.18) provided by nginx:1.18:8030020200529144723:30b713e6-0.x86_64
  - module nginx:1.18:8030020200529144723:30b713e6-0.x86_64 conflicts with module(nginx:1.14) provided by nginx:1.14:8000020190830002848:f8e95b4e-0.x86_64
  - conflicting requests
Name             : nginx
Stream           : 1.18 [e] [a]
Version          : 8030020200529144723
Context          : 30b713e6
Architecture     : x86_64
Profiles         : common [d] [i]
Default profiles : common
Repo             : rhel-8-for-x86_64-appstream-rpms
Summary          : nginx webserver
Description      : nginx 1.18 webserver module
Requires         : platform:[el8]
Artifacts        : nginx-1:1.18.0-2.module+el8.3.0+6830+4321f41c.src
                 : nginx-1:1.18.0-2.module+el8.3.0+6830+4321f41c.x86_64
                 : nginx-all-modules-1:1.18.0-2.module+el8.3.0+6830+4321f41c.noarch
                 : nginx-debuginfo-1:1.18.0-2.module+el8.3.0+6830+4321f41c.x86_64
                 : nginx-debugsource-1:1.18.0-2.module+el8.3.0+6830+4321f41c.x86_64
                 : nginx-filesystem-1:1.18.0-2.module+el8.3.0+6830+4321f41c.noarch
                 : nginx-mod-http-image-filter-1:1.18.0-2.module+el8.3.0+6830+4321f41c.x86_64
                 : nginx-mod-http-image-filter-debuginfo-1:1.18.0-2.module+el8.3.0+6830+4321f41c.x86_64
                 : nginx-mod-http-perl-1:1.18.0-2.module+el8.3.0+6830+4321f41c.x86_64
                 : nginx-mod-http-perl-debuginfo-1:1.18.0-2.module+el8.3.0+6830+4321f41c.x86_64
                 : nginx-mod-http-xslt-filter-1:1.18.0-2.module+el8.3.0+6830+4321f41c.x86_64
                 : nginx-mod-http-xslt-filter-debuginfo-1:1.18.0-2.module+el8.3.0+6830+4321f41c.x86_64
                 : nginx-mod-mail-1:1.18.0-2.module+el8.3.0+6830+4321f41c.x86_64
                 : nginx-mod-mail-debuginfo-1:1.18.0-2.module+el8.3.0+6830+4321f41c.x86_64
                 : nginx-mod-stream-1:1.18.0-2.module+el8.3.0+6830+4321f41c.x86_64
                 : nginx-mod-stream-debuginfo-1:1.18.0-2.module+el8.3.0+6830+4321f41c.x86_64

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled, [a]ctive
广告
将在 10 秒后关闭
bannerAds