Why did Discover try to remove unrelated packages during installation, when DNF didn't?

Screenshot_20240419_195659

whereas

  1. sudo dnf install obs-studio
    
  2. Last metadata expiration check: 2:15:08 ago on Fri 19 Apr 2024 17:42:44 BST.
    Dependencies resolved.
    
     Problem: problem with installed package digikam-libs-8.3.0-1.fc40.x86_64
      - package digikam-libs-8.3.0-1.fc40.x86_64 from @System requires libQt6Gui.so.6(Qt_6.6_PRIVATE_API)(64bit), but none of the providers can be installed
      - package digikam-libs-8.3.0-1.fc40.x86_64 from fedora requires libQt6Gui.so.6(Qt_6.6_PRIVATE_API)(64bit), but none of the providers can be installed
      - package digikam-libs-8.3.0-1.fc40.x86_64 from updates-testing requires libQt6Gui.so.6(Qt_6.6_PRIVATE_API)(64bit), but none of the providers can be installed
      - package qt6-qtbase-gui-6.6.2-7.fc40.x86_64 from @System requires qt6-qtbase(x86-64) = 6.6.2-7.fc40, but none of the providers can be installed
      - package qt6-qtbase-gui-6.6.2-7.fc40.x86_64 from @System requires libQt6Core.so.6(Qt_6.6_PRIVATE_API)(64bit), but none of the providers can be installed
      - package qt6-qtbase-gui-6.6.2-7.fc40.x86_64 from fedora requires qt6-qtbase(x86-64) = 6.6.2-7.fc40, but none of the providers can be installed
      - package qt6-qtbase-gui-6.6.2-7.fc40.x86_64 from fedora requires libQt6Core.so.6(Qt_6.6_PRIVATE_API)(64bit), but none of the providers can be installed
      - cannot install both qt6-qtbase-6.7.0-3.fc40.x86_64 from updates-testing and qt6-qtbase-6.6.2-7.fc40.x86_64 from @System
      - cannot install both qt6-qtbase-6.7.0-3.fc40.x86_64 from updates-testing and qt6-qtbase-6.6.2-7.fc40.x86_64 from fedora
      - package obs-studio-30.1.1-2.fc40.x86_64 from updates-testing requires libQt6Core.so.6(Qt_6.7)(64bit), but none of the providers can be installed
      - cannot install the best candidate for the job
    ========================================================================================================================================================================================================================================================
     Package                                                        Architecture                              Version                                                                              Repository                                          Size
    ========================================================================================================================================================================================================================================================
    Installing:
     obs-studio                                                     x86_64                                    30.1.1-1.fc40                                                                        fedora                                             4.6 M
    Installing dependencies:
     libdatachannel                                                 x86_64                                    0.20.2-1.fc40                                                                        fedora                                             563 k
     libqrcodegencpp                                                x86_64                                    1.8.0-9.fc40                                                                         fedora                                              34 k
     luajit                                                         x86_64                                    2.1.1707061634-2.fc40                                                                fedora                                             413 k
     obs-cef                                                        x86_64                                    5060^cr103.0.5060.134~git20231010.17f8588-2.fc40                                     fedora                                              88 M
     obs-studio-libs                                                x86_64                                    30.1.1-1.fc40                                                                        fedora                                             2.4 M
     usrsctp                                                        x86_64                                    1:0.9.5.0-8.fc40                                                                     fedora                                             257 k
     x264-libs                                                      x86_64                                    0.164-13.20231001git31e19f92.fc40                                                    rpmfusion-free                                     701 k
    Installing weak dependencies:
     obs-studio-plugin-browser                                      x86_64                                    30.1.1-1.fc40                                                                        fedora                                             509 k
     obs-studio-plugin-vlc-video                                    x86_64                                    30.1.1-1.fc40                                                                        fedora                                              61 k
     obs-studio-plugin-webkitgtk                                    x86_64                                    0~git20231023.3c0978b-3.fc40                                                         fedora                                              26 k
     obs-studio-plugin-x264                                         x86_64                                    30.1.1-1.fc40                                                                        rpmfusion-free                                      49 k
    Skipping packages with conflicts:
    (add '--best --allowerasing' to command line to force their upgrade):
     qt6-qtbase                                                     x86_64                                    6.7.0-3.fc40                                                                         updates-testing                                    4.1 M
    Skipping packages with broken dependencies:
     obs-studio                                                     x86_64                                    30.1.1-2.fc40                                                                        updates-testing                                    4.6 M
    
    Transaction Summary
    ========================================================================================================================================================================================================================================================
    Install  12 Packages
    Skip      2 Packages
    
    Total download size: 98 M
    Installed size: 312 M
    Is this ok [y/N]: y
    Downloading Packages:
    (1/12): libqrcodegencpp-1.8.0-9.fc40.x86_64.rpm                                                                                                                                                                         266 kB/s |  34 kB     00:00    
    (2/12): libdatachannel-0.20.2-1.fc40.x86_64.rpm                                                                                                                                                                         1.6 MB/s | 563 kB     00:00    
    (3/12): luajit-2.1.1707061634-2.fc40.x86_64.rpm                                                                                                                                                                         1.1 MB/s | 413 kB     00:00    
    (4/12): obs-studio-libs-30.1.1-1.fc40.x86_64.rpm                                                                                                                                                                        1.2 MB/s | 2.4 MB     00:02    
    (5/12): obs-studio-30.1.1-1.fc40.x86_64.rpm                                                                                                                                                                             2.1 MB/s | 4.6 MB     00:02    
    (6/12): obs-studio-plugin-vlc-video-30.1.1-1.fc40.x86_64.rpm                                                                                                                                                            1.1 MB/s |  61 kB     00:00    
    (7/12): obs-studio-plugin-webkitgtk-0~git20231023.3c0978b-3.fc40.x86_64.rpm                                                                                                                                             476 kB/s |  26 kB     00:00    
    (8/12): usrsctp-0.9.5.0-8.fc40.x86_64.rpm                                                                                                                                                                               1.5 MB/s | 257 kB     00:00    
    (9/12): obs-studio-plugin-browser-30.1.1-1.fc40.x86_64.rpm                                                                                                                                                              1.3 MB/s | 509 kB     00:00    
    (10/12): obs-studio-plugin-x264-30.1.1-1.fc40.x86_64.rpm                                                                                                                                                                360 kB/s |  49 kB     00:00    
    (11/12): x264-libs-0.164-13.20231001git31e19f92.fc40.x86_64.rpm                                                                                                                                                         1.7 MB/s | 701 kB     00:00    
    (12/12): obs-cef-5060^cr103.0.5060.134~git20231010.17f8588-2.fc40.x86_64.rpm                                                                                                                                            3.8 MB/s |  88 MB     00:23    
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Total                                                                                                                                                                                                                   4.0 MB/s |  98 MB     00:24     
    Running transaction check
    Transaction check succeeded.
    Running transaction test
    Transaction test succeeded.
    Running transaction
      Preparing        :                                                                                                                                                                                                                                1/1 
      Installing       : x264-libs-0.164-13.20231001git31e19f92.fc40.x86_64                                                                                                                                                                            1/12 
      Installing       : usrsctp-1:0.9.5.0-8.fc40.x86_64                                                                                                                                                                                               2/12 
      Installing       : libdatachannel-0.20.2-1.fc40.x86_64                                                                                                                                                                                           3/12 
      Installing       : obs-cef-5060^cr103.0.5060.134~git20231010.17f8588-2.fc40.x86_64                                                                                                                                                               4/12 
      Running scriptlet: obs-cef-5060^cr103.0.5060.134~git20231010.17f8588-2.fc40.x86_64                                                                                                                                                               4/12 
      Installing       : luajit-2.1.1707061634-2.fc40.x86_64                                                                                                                                                                                           5/12 
      Installing       : libqrcodegencpp-1.8.0-9.fc40.x86_64                                                                                                                                                                                           6/12 
      Installing       : obs-studio-libs-30.1.1-1.fc40.x86_64                                                                                                                                                                                          7/12 
      Installing       : obs-studio-plugin-webkitgtk-0~git20231023.3c0978b-3.fc40.x86_64                                                                                                                                                               8/12 
      Installing       : obs-studio-30.1.1-1.fc40.x86_64                                                                                                                                                                                               9/12 
      Installing       : obs-studio-plugin-browser-30.1.1-1.fc40.x86_64                                                                                                                                                                               10/12 
      Installing       : obs-studio-plugin-vlc-video-30.1.1-1.fc40.x86_64                                                                                                                                                                             11/12 
      Installing       : obs-studio-plugin-x264-30.1.1-1.fc40.x86_64                                                                                                                                                                                  12/12 
      Running scriptlet: obs-studio-plugin-x264-30.1.1-1.fc40.x86_64                                                                                                                                                                                  12/12 
    
    Installed:
      libdatachannel-0.20.2-1.fc40.x86_64  libqrcodegencpp-1.8.0-9.fc40.x86_64                luajit-2.1.1707061634-2.fc40.x86_64              obs-cef-5060^cr103.0.5060.134~git20231010.17f8588-2.fc40.x86_64 obs-studio-30.1.1-1.fc40.x86_64            
      obs-studio-libs-30.1.1-1.fc40.x86_64 obs-studio-plugin-browser-30.1.1-1.fc40.x86_64     obs-studio-plugin-vlc-video-30.1.1-1.fc40.x86_64 obs-studio-plugin-webkitgtk-0~git20231023.3c0978b-3.fc40.x86_64 obs-studio-plugin-x264-30.1.1-1.fc40.x86_64
      usrsctp-1:0.9.5.0-8.fc40.x86_64      x264-libs-0.164-13.20231001git31e19f92.fc40.x86_64
    Skipped:
      obs-studio-30.1.1-2.fc40.x86_64                                                                                             qt6-qtbase-6.7.0-3.fc40.x86_64                                                                                            
    
    Complete!
    

I see that it mentions that there are some problems with DigiKam. I expect that that’s because I’m using the Fedora 40 Beta KDE Spin, which contains packages in testing.

However, that’s unrelated to this transaction - it installs everything it needs to - so I’m surprised that Discover would attempt to remove it.

It somewhat reminds me of https://www.reddit.com/r/pop_os/comments/qqa44e/comment/hjyxzaz/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button.

Does anyone know why Discover would try to uninstall DigiKam? is this a fault of PackageKit again?