RHEL 8 yum update fails with opencv dependencies

Solution Verified - Updated -

Issue

yum update fails with:

[root@r8] $ yum update
Updating Subscription Management repositories.
Last metadata expiration check: 2:31:58 ago on Tue 03 Jan 2023 05:12:21 AM EST.
Error:
 Problem 1: package opencv-3.4.6-6.el8.x86_64 requires opencv-contrib(x86-64) = 3.4.6-6.el8, but none of the providers can be installed
  - cannot install both opencv-contrib-3.4.6-8.el8.x86_64 and opencv-contrib-3.4.6-6.el8.x86_64
  - cannot install the best update candidate for package opencv-contrib-3.4.6-6.el8.x86_64
  - cannot install the best update candidate for package opencv-3.4.6-6.el8.x86_64
 Problem 2: problem with installed package opencv-3.4.6-6.el8.x86_64
  - package opencv-3.4.6-6.el8.x86_64 requires opencv-core(x86-64) = 3.4.6-6.el8, but none of the providers can be installed
  - cannot install both opencv-core-3.4.6-8.el8.x86_64 and opencv-core-3.4.6-6.el8.x86_64
  - cannot install the best update candidate for package opencv-core-3.4.6-6.el8.x86_64
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

Environment

Red Hat Enterprise Linux 8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content