Linux Baidu Cloud Compute Execution Yum Update Reports Dependency Conflict
Problem description:
Taking BCC Rocky 9.3 as an example, the specific phenomena are as follows:
Encounter some package conflicts when executing the dnf update / yum update command.

Cause analysis:
The aforementioned image is pre-installed with NVIDIA MLNX_OFED Driver, providing high-performance network support for smart card services. Because OFED driver-related packages (e.g., openmpi/perftest/ucx) have lower versions than their counterparts with the same software repository names, the system uses the software package from the software repository to overwrite local software packages related to NVIDIA MLNX_OFED Driver in the update phase by default. However, the system fails to resolve the problem of dependency of software packages, causing dependency conflicts in the installation phase and update failure.
Solution:
When using dnf update / yum update to update system software packages, if the aforementioned dependency conflict is confirmed to be caused by NVIDIA MLNX_OFED Drive, you may use dnf update --nobest to proceed with the update. Determine whether the package contains MLNX_OFED Driver version information to check whether it is the software package related to MLNX_OFED Driver. For example,
1[root@localhost ~]# rpm -qi openmpi
2Name : openmpi
3Version : 4.1.5a1
4Release : 1.58511
5Architecture: x86_64
6Install Date: Mon 18 Nov 2024 08:23:26 PM CST
7Group : Development/Libraries
8Size : 20968058
9License : BSD
10Signature : RSA/SHA256, Mon 10 Jun 2024 11:05:39 PM CST, Key ID a024f6f0e6d6a281
11Source RPM : openmpi-4.1.5a1-1.58511.src.rpm
12Build Date : Mon 10 Jun 2024 10:42:43 PM CST
13Build Host : c-237-149-20-023.mtl.labs.mlnx
14Relocations : /usr/mpi/gcc/openmpi-4.1.5a1
15Packager : Mellanox Technologies
16 Vendor : Mellanox Technologies # Contains current MLNX_OFED driver information.
