将NGINX升级到v1.22.0后,无法升级Nginx模块
在尝试升级模块之后,我将NGINX从1.16升级到1.22.0,但每次尝试都失败了。
My OS="CentOS 7"
需要升级的NGINX模块:
nginx-mod-http-image-filter.x86_64 1:1.16.1-1.el7 @epel
nginx-mod-http-perl.x86_64 1:1.16.1-1.el7 @epel
nginx-mod-http-xslt-filter.x86_64 1:1.16.1-1.el7 @epel
nginx-mod-stream.x86_64 1:1.16.1-1.el7 @epel
nginx-mod-mail.x86_64 1:1.16.1-1.el7 @epel
可用的模块之一及其信息:
# yum info nginx-mod-stream
Installed Packages
Name : nginx-mod-stream
Arch : x86_64
Epoch : 1
Version : 1.16.1
Release : 1.el7
Size : 171 k
Repo : installed
From repo : epel
Summary : Nginx stream modules
URL : http://nginx.org/
License : BSD
Description : Nginx stream modules.
Available Packages
Name : nginx-mod-stream
Arch : x86_64
Epoch : 1
Version : 1.20.1
Release : 9.el7
Size : 89 k
Repo : epel/x86_64
Summary : Nginx stream modules
URL : https://nginx.org
License : BSD
Description : Nginx stream modules.
我的努力之一:
# yum update nginx-mod-stream
ackage nginx-mod-stream.x86_64 1:1.20.1-9.el7 will be an update
--> Processing Dependency: nginx(abi) = 1.20.1 for package: 1:nginx-mod-stream-1.20.1-9.el7.x86_64
--> Finished Dependency Resolution
Error: Package: 1:nginx-mod-stream-1.20.1-9.el7.x86_64 (epel)
Requires: nginx(abi) = 1.20.1
Available: 1:nginx-1.20.1-9.el7.x86_64 (epel)
nginx(abi) = 1.20.1
Installed: 1:nginx-1.22.0-1.el7.ngx.x86_64 (@nginx-stable)
Not found
Available: 1:nginx-1.8.0-1.el7.ngx.x86_64 (nginx-stable)
Not found
Available: 1:nginx-1.8.1-1.el7.ngx.x86_64 (nginx-stable)
Not found
Available: 1:nginx-1.9.0-1.el7.ngx.x86_64 (nginx-mainline)
...
...
这是我的问题,我该如何升级它们?
I upgraded Nginx from 1.16 to 1.22.0 after that tried to upgrade modules but every attempt failed.
My OS="CentOS 7"
Nginx Modules that need to upgrade:
nginx-mod-http-image-filter.x86_64 1:1.16.1-1.el7 @epel
nginx-mod-http-perl.x86_64 1:1.16.1-1.el7 @epel
nginx-mod-http-xslt-filter.x86_64 1:1.16.1-1.el7 @epel
nginx-mod-stream.x86_64 1:1.16.1-1.el7 @epel
nginx-mod-mail.x86_64 1:1.16.1-1.el7 @epel
One of the available modules and it's info:
# yum info nginx-mod-stream
Installed Packages
Name : nginx-mod-stream
Arch : x86_64
Epoch : 1
Version : 1.16.1
Release : 1.el7
Size : 171 k
Repo : installed
From repo : epel
Summary : Nginx stream modules
URL : http://nginx.org/
License : BSD
Description : Nginx stream modules.
Available Packages
Name : nginx-mod-stream
Arch : x86_64
Epoch : 1
Version : 1.20.1
Release : 9.el7
Size : 89 k
Repo : epel/x86_64
Summary : Nginx stream modules
URL : https://nginx.org
License : BSD
Description : Nginx stream modules.
One of my efforts:
# yum update nginx-mod-stream
ackage nginx-mod-stream.x86_64 1:1.20.1-9.el7 will be an update
--> Processing Dependency: nginx(abi) = 1.20.1 for package: 1:nginx-mod-stream-1.20.1-9.el7.x86_64
--> Finished Dependency Resolution
Error: Package: 1:nginx-mod-stream-1.20.1-9.el7.x86_64 (epel)
Requires: nginx(abi) = 1.20.1
Available: 1:nginx-1.20.1-9.el7.x86_64 (epel)
nginx(abi) = 1.20.1
Installed: 1:nginx-1.22.0-1.el7.ngx.x86_64 (@nginx-stable)
Not found
Available: 1:nginx-1.8.0-1.el7.ngx.x86_64 (nginx-stable)
Not found
Available: 1:nginx-1.8.1-1.el7.ngx.x86_64 (nginx-stable)
Not found
Available: 1:nginx-1.9.0-1.el7.ngx.x86_64 (nginx-mainline)
...
...
So here's my question, How can I upgrade them?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请注意,您的NGINX已从NGINX稳定存储库中安装。从您的输出:
如果您想从该仓库中安装nginx,则Epel的软件包是不必要的(他们不做任何事情,因为nginx package nginx package backage从其官方存储库中已经包括流模块)。
因此,您要做的就是
yum删除nginx-mod - *
Note that your NGINX has been installed from the NGINX stable repository. From your output:
If you want to keep NGINX installed from that repo, the EPEL's packages are unnecessary (they don't do anything, because NGINX package from its official repository already includes stream module).
So all you have to do is
yum remove nginx-mod-*