For some reason zoneminder-1.32.3-1.el7.x86_64.rpm depends on zoneminder-httpd-1.32.3-1.el7.x86_64.rpm and you cannot install zoneminder-nginx-1.32.3-1.el7.x86_64.rpm without receiving the "yum conflict error" on POST#1
Is this by design or am I doing something wrong?
Personally does not make sense the dependency, since the packages are separated but I am a first time user of this software, so probably i'm wrong.
I may be misreading all this but, as you have zmc installed I'm presuming that you also have some version of zoneminder already installed, probably the -httpd version (that's what I ended up with without specifying a version), and that the conflict message therefore relates to the -nginx version conflicting with the already-installed version.
'yum autoremove zoneminder' should remove the installed version along with all of its otherwise-unused dependencies and allow the -nginx version to be installed instead.
e2a: Maybe 'yum autoremove zoneminder-httpd' would suffice?
[root@video ~]# yum remove zoneminder-httpd
Loaded plugins: fastestmirror
Resolving Dependencies
--> Running transaction check
---> Package zoneminder-httpd.x86_64 0:1.32.3-1.el7 will be erased
--> Processing Dependency: zoneminder-httpd(x86-64) = 1.32.3-1.el7 for package: zoneminder-1.32.3-1.el7.x86_64
--> Running transaction check
---> Package zoneminder.x86_64 0:1.32.3-1.el7 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================================================================================
Removing:
zoneminder-httpd x86_64 1.32.3-1.el7 @rpmfusion-free-updates 7.0 k
Removing for dependencies:
zoneminder x86_64 1.32.3-1.el7 @rpmfusion-free-updates 0.0
Transaction Summary
====================================================================================================================================================================================================
Remove 1 Package (+1 Dependent package)
Installed size: 7.0 k
Is this ok [y/N]:
Problem is that I CANNOT install -nginx package without yum complaining of conflict. zoneminder depends on -httpd, why? it should be the other way around. -httpd or -nginx should depend on zoneminder.
Problem is that I CANNOT install -nginx package without yum complaining of conflict. zoneminder depends on -httpd, why? it should be the other way around. -httpd or -nginx should depend on zoneminder.
To summarize, one cannot install -nginx package because it will conflict with -httpd package.
It looks like installing zoneminer without specifying either -httpd or -nginx defaults to the -httpd version, which then obviously depends on zoneminder-httpd, and it also pulls in -common.
The -nginx install also includes -common, along with the other nginx-specific files, but it doesn't include -httpd.
So what happens if you skip the 'install zoneminder' step completely and go straight to 'install zoneinder-nginx'? I guess you may need to 'yum autoremove zoneminder' first, but yum may be smart enough to figure things out.
e2a: Reading again, I'm kind of surprised that 'yum install zoneminder-nginx' doesn't work now that zoneminder-httpd and zoneminder have been removed because there should no longer be any conflicts.
This is from a system that has an older version of ZM (1.32.2), so none of the -common, -hhtpd, or -nginx packages are installed but most of the other dependencies from zoneminder-common are, and it looks like it'd work OK...
Because I installed zoneminder in the first place, so for community support purposes, I was simply showing which version of zoneminder I am having an issue with....
kitkat wrote: ↑Wed Oct 16, 2019 1:14 pm
So what happens if you skip the 'install zoneminder' step completely and go straight to 'install zoneinder-nginx'? I guess you may need to 'yum autoremove zoneminder' first, but yum may be smart enough to figure things out.
[root@video ~]# rpm -qa "zone*"
zoneminder-common-1.32.3-1.el7.x86_64
[root@video ~]#
[root@video ~]# yum install zoneminder-nginx
[...]
Resolving Dependencies
--> Running transaction check
---> Package zoneminder-nginx.x86_64 0:1.32.3-1.el7 will be installed
--> Processing Dependency: php-fpm for package: zoneminder-nginx-1.32.3-1.el7.x86_64
--> Processing Dependency: nginx for package: zoneminder-nginx-1.32.3-1.el7.x86_64
--> Running transaction check
---> Package nginx.x86_64 1:1.12.2-3.el7 will be installed
--> Processing Dependency: nginx-all-modules = 1:1.12.2-3.el7 for package: 1:nginx-1.12.2-3.el7.x86_64
---> Package php-fpm.x86_64 0:5.4.16-46.el7 will be installed
--> Running transaction check
---> Package nginx-all-modules.noarch 1:1.12.2-3.el7 will be installed
--> Processing Dependency: nginx-mod-http-geoip = 1:1.12.2-3.el7 for package: 1:nginx-all-modules-1.12.2-3.el7.noarch
--> Processing Dependency: nginx-mod-http-image-filter = 1:1.12.2-3.el7 for package: 1:nginx-all-modules-1.12.2-3.el7.noarch
--> Processing Dependency: nginx-mod-http-perl = 1:1.12.2-3.el7 for package: 1:nginx-all-modules-1.12.2-3.el7.noarch
--> Processing Dependency: nginx-mod-http-xslt-filter = 1:1.12.2-3.el7 for package: 1:nginx-all-modules-1.12.2-3.el7.noarch
--> Processing Dependency: nginx-mod-mail = 1:1.12.2-3.el7 for package: 1:nginx-all-modules-1.12.2-3.el7.noarch
--> Processing Dependency: nginx-mod-stream = 1:1.12.2-3.el7 for package: 1:nginx-all-modules-1.12.2-3.el7.noarch
--> Running transaction check
---> Package nginx-mod-http-geoip.x86_64 1:1.12.2-3.el7 will be installed
---> Package nginx-mod-http-image-filter.x86_64 1:1.12.2-3.el7 will be installed
--> Processing Dependency: gd for package: 1:nginx-mod-http-image-filter-1.12.2-3.el7.x86_64
--> Processing Dependency: libgd.so.2()(64bit) for package: 1:nginx-mod-http-image-filter-1.12.2-3.el7.x86_64
---> Package nginx-mod-http-perl.x86_64 1:1.12.2-3.el7 will be installed
---> Package nginx-mod-http-xslt-filter.x86_64 1:1.12.2-3.el7 will be installed
---> Package nginx-mod-mail.x86_64 1:1.12.2-3.el7 will be installed
---> Package nginx-mod-stream.x86_64 1:1.12.2-3.el7 will be installed
--> Running transaction check
---> Package gd.x86_64 0:2.0.35-26.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================================================================================
Installing:
zoneminder-nginx x86_64 1.32.3-1.el7 rpmfusion-free-updates 21 k
Installing for dependencies:
gd x86_64 2.0.35-26.el7 base 146 k
nginx x86_64 1:1.12.2-3.el7 epel 531 k
nginx-all-modules noarch 1:1.12.2-3.el7 epel 16 k
nginx-mod-http-geoip x86_64 1:1.12.2-3.el7 epel 23 k
nginx-mod-http-image-filter x86_64 1:1.12.2-3.el7 epel 27 k
nginx-mod-http-perl x86_64 1:1.12.2-3.el7 epel 36 k
nginx-mod-http-xslt-filter x86_64 1:1.12.2-3.el7 epel 26 k
nginx-mod-mail x86_64 1:1.12.2-3.el7 epel 54 k
nginx-mod-stream x86_64 1:1.12.2-3.el7 epel 76 k
php-fpm x86_64 5.4.16-46.el7 base 1.4 M
Transaction Summary
====================================================================================================================================================================================================
Install 1 Package (+10 Dependent packages)
Total download size: 2.4 M
Installed size: 6.9 M
Is this ok [y/d/N]: n
Thanks
Isn't that right, though? No conflicts, zoneminder-common already installed, zoneminder-nginx and its dependencies to be installed, with no mention of zoneminder-httpd.
kitkat wrote: ↑Wed Oct 16, 2019 1:45 pm
Isn't that right, though? No conflicts, zoneminder-common already installed, zoneminder-nginx and its dependencies to be installed, with no mention of zoneminder-httpd.
Not to me, but I am a first time user of this software, so idk. I am trying to provide a POC.
Either way, it does not make sense that `zoneminder` cannot be installed along with `-nginx`
[root@video ~]# rpm -qa "zone*"
zoneminder-nginx-1.32.3-1.el7.x86_64
zoneminder-common-1.32.3-1.el7.x86_64
[root@video ~]#
[root@video ~]# yum install zoneminder
[...]
Resolving Dependencies
--> Running transaction check
---> Package zoneminder.x86_64 0:1.32.3-1.el7 will be installed
--> Processing Dependency: zoneminder-httpd(x86-64) = 1.32.3-1.el7 for package: zoneminder-1.32.3-1.el7.x86_64
--> Running transaction check
---> Package zoneminder-httpd.x86_64 0:1.32.3-1.el7 will be installed
--> Processing Conflict: zoneminder-nginx-1.32.3-1.el7.x86_64 conflicts zoneminder-httpd
--> Processing Conflict: zoneminder-httpd-1.32.3-1.el7.x86_64 conflicts zoneminder-nginx
--> Finished Dependency Resolution
Error: zoneminder-nginx conflicts with zoneminder-httpd-1.32.3-1.el7.x86_64
Error: zoneminder-httpd conflicts with zoneminder-nginx-1.32.3-1.el7.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
You're all done - There's no need to install zoneminder when either zoneminder-httpd or zoneminder-nginx are installed.
The 'zoneminder' package is effectively the same as/a shortcut to 'zoneminder-httpd'
e2a: Basically, you should install just one of zoneminder-httpd, zoneminder-nginx, or zoneminder (which, as mentioned, is the same as zoneminder-httpd). zoneminder-common will be installed as a dependency in all cases.
[root@video ~]# yum search zoneminder
[...]
zoneminder-common.x86_64 : Common files for ZoneMinder, not tied to a specific web server
zoneminder-httpd.x86_64 : ZoneMinder configuration for Apache web server
zoneminder-nginx.x86_64 : ZoneMinder configuration for Nginx web server
mythzoneminder.x86_64 : A module for MythTV for camera security and surveillance
zoneminder.x86_64 : A camera monitoring and analysis tool
Interesting...
I'll give it a go.
Thank you very much for your help and patience @kitkat
I suspect that you may still run into problems though, because you'll now probably have both Apache and nginx installed, and they may not play nicely together (or they may, I really don't know).
I would have done a 'yum autoremove zoneminder-httpd' to remove it as well as all its otherwise-unused dependencies.
I'd be tempted to autoremove zm-nginx, install zm-httpd again, autoremove that, and then reinstall zm-nginx.