I did a dnf update yesterday and ran into the following error:
Transaction failed: Rpm transaction failed.
- file /etc/sysconfig/atop from install of pcp-atop-7.2.0-1.fc44.x86_64 conflicts with file from package atop-2.13.0-1.fc44.x86_64
- file /usr/bin/atop from install of pcp-atop-7.2.0-1.fc44.x86_64 conflicts with file from package atop-2.13.0-1.fc44.x86_64
- file /usr/bin/atopsar from install of pcp-atop-7.2.0-1.fc44.x86_64 conflicts with file from package atop-2.13.0-1.fc44.x86_64
- file /usr/lib/systemd/system/atop.service from install of pcp-atop-7.2.0-1.fc44.x86_64 conflicts with file from package atop-2.13.0-1.fc44.x86_64
- file /usr/share/man/man1/atop.1.gz from install of pcp-atop-7.2.0-1.fc44.x86_64 conflicts with file from package atop-2.13.0-1.fc44.x86_64
- file /usr/share/man/man1/atopsar.1.gz from install of pcp-atop-7.2.0-1.fc44.x86_64 conflicts with file from package atop-2.13.0-1.fc44.x86_64
I certainly do understand what is going on, but I think the packagers made a mistake.
atop was already installed on my system. Then dnf update tried to install the following packages as dependencies:
pcp-atop
pcp-dstat
pcp-htop
pcp-selinux-import
Hmmm.
The problem is 3-fold:
I never asked pcp-atop to be installed.
The versions are different.
The descriptions via dnf info is abysmal.
In reality atop 2.13.0 and pcp-atop 7.2.0 provide pretty much the same binary, yet the version difference is not explained that 7.2.0 = 2.13.0
Then it requires manual intervention for even running dnf update successfully.
This really could have been handled better and I ask the 2 package maintainers to find this better way.