自定义rpm对特定版本的nginx的依赖关系
我正在尝试为特定的nginx模块创建一个RPM。我的spec文件成功地构建了模块并创建了包,但我无法使它依赖于构建模块所依据的nginx包的右侧 在我的规范文件中,我尝试使用:自定义rpm对特定版本的nginx的依赖关系,nginx,rpm-spec,Nginx,Rpm Spec,我正在尝试为特定的nginx模块创建一个RPM。我的spec文件成功地构建了模块并创建了包,但我无法使它依赖于构建模块所依据的nginx包的右侧 在我的规范文件中,我尝试使用: Requires: nginx == 1.12.2-1.el7_4.ngx Ben然后,当我尝试安装模块时,yum失败并显示以下消息: Error: Package: 1:nginx-headers-more-1.12.2-0.33-2.el7_4.x86_64 (custom) Requires: ng
Requires: nginx == 1.12.2-1.el7_4.ngx
Ben然后,当我尝试安装模块时,yum失败并显示以下消息:
Error: Package: 1:nginx-headers-more-1.12.2-0.33-2.el7_4.x86_64 (custom)
Requires: nginx = 1.12.2-1.el7_4.ngx
Available: 1:nginx-1.8.0-1.el7.ngx.x86_64 (nginx)
nginx = 1:1.8.0-1.el7.ngx
Available: 1:nginx-1.8.1-1.el7.ngx.x86_64 (nginx)
nginx = 1:1.8.1-1.el7.ngx
Available: 1:nginx-1.10.0-1.el7.ngx.x86_64 (nginx)
nginx = 1:1.10.0-1.el7.ngx
Available: 1:nginx-1.10.1-1.el7.ngx.x86_64 (nginx)
nginx = 1:1.10.1-1.el7.ngx
Available: 1:nginx-1.10.2-1.el7.ngx.x86_64 (nginx)
nginx = 1:1.10.2-1.el7.ngx
Available: 1:nginx-1.10.3-1.el7.ngx.x86_64 (nginx)
nginx = 1:1.10.3-1.el7.ngx
Available: 1:nginx-1.12.0-1.el7.ngx.x86_64 (nginx)
nginx = 1:1.12.0-1.el7.ngx
Available: 1:nginx-1.12.1-1.el7.ngx.x86_64 (nginx)
nginx = 1:1.12.1-1.el7.ngx
Installing: 1:nginx-1.12.2-1.el7_4.ngx.x86_64 (nginx)
nginx = 1:1.12.2-1.el7_4.ngx
Available: 1:nginx-1.14.0-1.el7_4.ngx.x86_64 (nginx)
nginx = 1:1.14.0-1.el7_4.ngx
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
我错在哪里?为了子孙后代
问题在于,nginx版本使用了epoch(即1:1.12.2-1.el7_4.ngx开始时的1:)
如此变化:
Requires: nginx == 1.12.2-1.el7_4.ngx
致:
修正了我的问题。为了子孙后代
问题在于,nginx版本使用了epoch(即1:1.12.2-1.el7_4.ngx开始时的1:)
如此变化:
Requires: nginx == 1.12.2-1.el7_4.ngx
致:
修正了我的问题