Reinstall packages from different repository?

,

I installed unitedrpms, but removed it because “http://reddit.com/comments/4sf1p5/comment/d59e7qa” caused me to be worried by its potential lack of stability. I consequently want to reinstall the packages (libavdevice, libdca, and x265-libs) that unitedrpms upgraded because I invoked “dnf upgrade --refresh” before uninstalling unitedrpms. However, invocation of “dnf reinstall libavdevice libdca x265-libs” merely causes

Installed package libavdevice-5.0.1-14.fc36.x86_64 (from unitedrpms) not available.
Installed package libdca-0.0.7-7.fc36.x86_64 (from unitedrpms) not available.
Installed package x265-libs-3.5-7.fc36.x86_64 (from unitedrpms) not available.
Error: No packages marked for reinstall.

to be stated.

[root@1656943212 BEEDELLROKEJULIANLOCKHART]# sudo rpm --import https://raw.githubusercontent.com/UnitedRPMs/unitedrpms/master/URPMS-GPG-PUBLICKEY-Fedora
[root@1656943212 BEEDELLROKEJULIANLOCKHART]# sudo dnf -y install https://github.com/UnitedRPMs/unitedrpms/releases/download/20/unitedrpms-$(rpm -E %fedora)-20.fc$(rpm -E %fedora).noarch.rpm
Fedora 36 - x86_64 - Debug                                                                                                   56 kB/s |  36 MB     10:56    
Fedora 36 - Source                                                                                                          4.7 MB/s | 7.4 MB     00:01    
Fedora 36 openh264 (From Cisco) - x86_64                                                                                    5.4 kB/s | 2.5 kB     00:00    
Fedora 36 openh264 (From Cisco) - x86_64 - Debug                                                                             14 kB/s | 3.7 kB     00:00    
Fedora Modular 36 - x86_64                                                                                                  1.8 MB/s | 2.4 MB     00:01    
Fedora Modular 36 - x86_64 - Debug                                                                                          1.1 MB/s | 963 kB     00:00    
Fedora Modular 36 - Source                                                                                                  139 kB/s |  83 kB     00:00    
Fedora 36 - x86_64 - Updates                                                                                                3.0 MB/s |  22 MB     00:07    
Fedora 36 - x86_64 - Updates - Debug                                                                                        1.1 MB/s |  12 MB     00:10    
Fedora 36 - Updates Source                                                                                                  665 kB/s | 1.4 MB     00:02    
Fedora Modular 36 - x86_64 - Updates                                                                                        529 kB/s | 2.2 MB     00:04    
Fedora Modular 36 - x86_64 - Updates - Debug                                                                                488 kB/s | 994 kB     00:02    
Fedora Modular 36 - Updates Source                                                                                          158 kB/s | 113 kB     00:00    
Fedora 36 - x86_64 - Test Updates                                                                                           2.0 MB/s |  11 MB     00:05    
Fedora 36 - x86_64 - Test Updates Debug                                                                                     1.4 MB/s | 4.7 MB     00:03    
Fedora 36 - Test Updates Source                                                                                             766 kB/s | 715 kB     00:00    
Fedora Modular 36 - x86_64 - Test Updates                                                                                   396 kB/s | 238 kB     00:00    
Fedora Modular 36 - x86_64 - Test Updates Debug                                                                             147 kB/s | 113 kB     00:00    
Fedora Modular 36 - Test Updates Source                                                                                     211 kB/s | 113 kB     00:00    
packages-microsoft-com-prod                                                                                                 1.4 MB/s | 3.8 MB     00:02    
RPM Fusion for Fedora 36 - Free                                                                                             1.3 MB/s | 676 kB     00:00    
RPM Fusion for Fedora 36 - Free tainted                                                                                     7.5 kB/s | 1.8 kB     00:00    
RPM Fusion for Fedora 36 - Free - Updates                                                                                   718 kB/s | 236 kB     00:00    
RPM Fusion for Fedora 36 - Nonfree                                                                                          716 kB/s | 252 kB     00:00    
RPM Fusion for Fedora 36 - Nonfree tainted                                                                                   20 kB/s | 4.8 kB     00:00    
RPM Fusion for Fedora 36 - Nonfree - Updates                                                                                302 kB/s |  80 kB     00:00    
unitedrpms-36-20.fc36.noarch.rpm                                                                                             17 kB/s |  10 kB     00:00    
Dependencies resolved.
============================================================================================================================================================
 Package                              Architecture                     Version                                 Repository                              Size
============================================================================================================================================================
Installing:
 unitedrpms                           noarch                           36-20.fc36                              @commandline                            10 k

Transaction Summary
============================================================================================================================================================
Install  1 Package

Total size: 10 k
Installed size: 4.3 k
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                    1/1 
  Installing       : unitedrpms-36-20.fc36.noarch                                                                                                       1/1 
  Verifying        : unitedrpms-36-20.fc36.noarch                                                                                                       1/1 

Installed:
  unitedrpms-36-20.fc36.noarch                                                                                                                              

Complete!
[root@1656943212 BEEDELLROKEJULIANLOCKHART]# dnf upgrade --refresh
unitedrpms 36 - x86_64                                                                                                      206  B/s | 870  B     00:04    
unitedrpms 36 - x86_64                                                                                                      3.0 MB/s | 3.1 kB     00:00    
Importing GPG key 0x3E0265AC:
 Userid     : "unitedrpms (The UnitedRPMs Project) <unitedrpms@protonmail.com>"
 Fingerprint: E95B DEA9 0474 55C0 B9A7 31D3 6AF6 BCF6 3E02 65AC
 From       : /etc/pki/rpm-gpg/URPMS-GPG-PUBLICKEY-Fedora
Is this ok [y/N]: Y
unitedrpms 36 - x86_64                                                                                                       98 kB/s | 760 kB     00:07    
Fedora 36 - x86_64                                                                                                          166 kB/s |  21 kB     00:00    
Fedora 36 - x86_64 - Debug                                                                                                  143 kB/s |  18 kB     00:00    
Fedora 36 - Source                                                                                                          136 kB/s |  17 kB     00:00    
Fedora 36 openh264 (From Cisco) - x86_64                                                                                     16 kB/s | 989  B     00:00    
Fedora 36 openh264 (From Cisco) - x86_64 - Debug                                                                            9.4 kB/s | 997  B     00:00    
Fedora Modular 36 - x86_64                                                                                                  229 kB/s |  20 kB     00:00    
Fedora Modular 36 - x86_64 - Debug                                                                                          234 kB/s |  17 kB     00:00    
Fedora Modular 36 - Source                                                                                                  254 kB/s |  17 kB     00:00    
Fedora 36 - x86_64 - Updates                                                                                                255 kB/s |  18 kB     00:00    
Fedora 36 - x86_64 - Updates - Debug                                                                                        134 kB/s |  15 kB     00:00    
Fedora 36 - Updates Source                                                                                                  122 kB/s |  16 kB     00:00    
Fedora Modular 36 - x86_64 - Updates                                                                                        265 kB/s |  19 kB     00:00    
Fedora Modular 36 - x86_64 - Updates - Debug                                                                                145 kB/s |  17 kB     00:00    
Fedora Modular 36 - Updates Source                                                                                          142 kB/s |  17 kB     00:00    
Fedora 36 - x86_64 - Test Updates                                                                                           123 kB/s |  16 kB     00:00    
Fedora 36 - x86_64 - Test Updates Debug                                                                                     188 kB/s |  15 kB     00:00    
Fedora 36 - Test Updates Source                                                                                             116 kB/s |  15 kB     00:00    
Fedora Modular 36 - x86_64 - Test Updates                                                                                   220 kB/s |  16 kB     00:00    
Fedora Modular 36 - x86_64 - Test Updates Debug                                                                             126 kB/s |  16 kB     00:00    
Fedora Modular 36 - Test Updates Source                                                                                     194 kB/s |  15 kB     00:00    
packages-microsoft-com-prod                                                                                                  18 kB/s | 3.0 kB     00:00    
RPM Fusion for Fedora 36 - Free                                                                                              65 kB/s | 7.8 kB     00:00    
RPM Fusion for Fedora 36 - Free tainted                                                                                      57 kB/s | 7.1 kB     00:00    
RPM Fusion for Fedora 36 - Free - Updates                                                                                    57 kB/s | 6.8 kB     00:00    
RPM Fusion for Fedora 36 - Nonfree                                                                                           63 kB/s | 7.9 kB     00:00    
RPM Fusion for Fedora 36 - Nonfree tainted                                                                                   52 kB/s | 6.9 kB     00:00    
RPM Fusion for Fedora 36 - Nonfree - Updates                                                                                 51 kB/s | 6.9 kB     00:00    
Dependencies resolved.

 Problem 1: cannot install the best update candidate for package spotify-client-1.1.84.716-1.fc36.x86_64
  - nothing provides libcurl-openssl needed by spotify-client-1:1.1.84.716-2.fc36.noarch
 Problem 2: cannot install the best update candidate for package steam-1.0.0.74-2.fc36.i686
  - nothing provides libtxc_dxtn(x86-32) needed by steam-1.0.0.74-7.fc36.i686
 Problem 3: package OpenImageIO-2.3.17.0-1.fc36.x86_64 requires libopencv_core.so.4.5()(64bit), but none of the providers can be installed
  - package OpenImageIO-2.3.17.0-1.fc36.x86_64 requires libopencv_imgproc.so.4.5()(64bit), but none of the providers can be installed
  - package OpenImageIO-2.3.17.0-1.fc36.x86_64 requires libopencv_videoio.so.4.5()(64bit), but none of the providers can be installed
  - cannot install both opencv-core-4.5.5-9.fc36.x86_64 and opencv-core-4.5.5-5.fc36.x86_64
  - cannot install both opencv-core-4.5.5-5.fc36.x86_64 and opencv-core-4.5.5-9.fc36.x86_64
  - cannot install the best update candidate for package opencv-core-4.5.5-5.fc36.x86_64
  - cannot install the best update candidate for package OpenImageIO-2.3.17.0-1.fc36.x86_64
 Problem 4: package vlc-core-1:3.0.17.4-1.fc36.x86_64 requires libx264.so.163()(64bit), but none of the providers can be installed
  - cannot install both x264-libs-1:0.164-7.git19856cc.fc36.x86_64 and x264-libs-0.163-6.20210613git5db6aa6.fc36.x86_64
  - cannot install both x264-libs-0.163-6.20210613git5db6aa6.fc36.x86_64 and x264-libs-1:0.164-7.git19856cc.fc36.x86_64
  - cannot install the best update candidate for package x264-libs-0.163-6.20210613git5db6aa6.fc36.x86_64
  - cannot install the best update candidate for package vlc-core-1:3.0.17.4-1.fc36.x86_64
 Problem 5: package compat-ffmpeg4-4.4.2-1.fc36.x86_64 requires libx264.so.163()(64bit), but none of the providers can be installed
  - cannot install both x264-libs-1:0.164-7.git19856cc.fc36.x86_64 and x264-libs-0.163-6.20210613git5db6aa6.fc36.x86_64
  - cannot install both x264-libs-0.163-6.20210613git5db6aa6.fc36.x86_64 and x264-libs-1:0.164-7.git19856cc.fc36.x86_64
  - package ffmpeg-libs-5.0.1-14.fc36.x86_64 requires libx264.so.164()(64bit), but none of the providers can be installed
  - cannot install the best update candidate for package ffmpeg-libs-5.0.1-3.fc36.x86_64
  - cannot install the best update candidate for package compat-ffmpeg4-4.4.2-1.fc36.x86_64
 Problem 6: package vlc-1:3.0.17.4-1.fc36.x86_64 requires vlc-core(x86-64) = 1:3.0.17.4-1.fc36, but none of the providers can be installed
  - package vlc-core-1:3.0.17.4-1.fc36.x86_64 requires libx264.so.163()(64bit), but none of the providers can be installed
  - cannot install both x264-libs-1:0.164-7.git19856cc.fc36.x86_64 and x264-libs-0.163-6.20210613git5db6aa6.fc36.x86_64
  - cannot install both x264-libs-0.163-6.20210613git5db6aa6.fc36.x86_64 and x264-libs-1:0.164-7.git19856cc.fc36.x86_64
  - package ffmpeg-libs-5.0.1-14.fc36.x86_64 requires libx264.so.164()(64bit), but none of the providers can be installed
  - package ffmpeg-5.0.1-14.fc36.x86_64 requires ffmpeg-libs(x86-64) = 5.0.1-14.fc36, but none of the providers can be installed
  - cannot install the best update candidate for package vlc-1:3.0.17.4-1.fc36.x86_64
  - cannot install the best update candidate for package ffmpeg-5.0.1-3.fc36.x86_64
============================================================================================================================================================
 Package                              Architecture                 Version                                           Repository                        Size
============================================================================================================================================================
Upgrading:
 libavdevice                          x86_64                       5.0.1-14.fc36                                     unitedrpms                        71 k
 libdca                               x86_64                       0.0.7-7.fc36                                      unitedrpms                       107 k
 x265-libs                            x86_64                       3.5-7.fc36                                        unitedrpms                       1.6 M
Skipping packages with conflicts:
(add '--best --allowerasing' to command line to force their upgrade):
 opencv-core                          x86_64                       4.5.5-9.fc36                                      unitedrpms                        19 M
 x264-libs                            x86_64                       1:0.164-7.git19856cc.fc36                         unitedrpms                       685 k
Skipping packages with broken dependencies:
 ffmpeg                               x86_64                       5.0.1-14.fc36                                     unitedrpms                       1.7 M
 ffmpeg-libs                          x86_64                       5.0.1-14.fc36                                     unitedrpms                       8.6 M
 spotify-client                       noarch                       1:1.1.84.716-2.fc36                               unitedrpms                        33 k
 steam                                i686                         1.0.0.74-7.fc36                                   unitedrpms                       3.4 M

Transaction Summary
============================================================================================================================================================
Upgrade  3 Packages
Skip     6 Packages

Total download size: 1.8 M
Is this ok [y/N]: Y
Downloading Packages:
(1/3): libdca-0.0.7-7.fc36.x86_64.rpm                                                                                        47 kB/s | 107 kB     00:02    
(2/3): libavdevice-5.0.1-14.fc36.x86_64.rpm                                                                                  12 kB/s |  71 kB     00:06    
(3/3): x265-libs-3.5-7.fc36.x86_64.rpm                                                                                      260 kB/s | 1.6 MB     00:06    
------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                       285 kB/s | 1.8 MB     00:06     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                    1/1 
  Upgrading        : x265-libs-3.5-7.fc36.x86_64                                                                                                        1/6 
  Upgrading        : libdca-0.0.7-7.fc36.x86_64                                                                                                         2/6 
  Running scriptlet: libdca-0.0.7-7.fc36.x86_64                                                                                                         2/6 
  Upgrading        : libavdevice-5.0.1-14.fc36.x86_64                                                                                                   3/6 
  Running scriptlet: libavdevice-5.0.1-14.fc36.x86_64                                                                                                   3/6 
  Cleanup          : x265-libs-3.5-3.fc36.x86_64                                                                                                        4/6 
  Cleanup          : libdca-0.0.7-5.fc36.x86_64                                                                                                         5/6 
  Cleanup          : libavdevice-5.0.1-3.fc36.x86_64                                                                                                    6/6 
  Running scriptlet: libavdevice-5.0.1-3.fc36.x86_64                                                                                                    6/6 
  Verifying        : libavdevice-5.0.1-14.fc36.x86_64                                                                                                   1/6 
  Verifying        : libavdevice-5.0.1-3.fc36.x86_64                                                                                                    2/6 
  Verifying        : libdca-0.0.7-7.fc36.x86_64                                                                                                         3/6 
  Verifying        : libdca-0.0.7-5.fc36.x86_64                                                                                                         4/6 
  Verifying        : x265-libs-3.5-7.fc36.x86_64                                                                                                        5/6 
  Verifying        : x265-libs-3.5-3.fc36.x86_64                                                                                                        6/6 

Upgraded:
  libavdevice-5.0.1-14.fc36.x86_64                       libdca-0.0.7-7.fc36.x86_64                       x265-libs-3.5-7.fc36.x86_64                      
Skipped:
  ffmpeg-5.0.1-14.fc36.x86_64   ffmpeg-libs-5.0.1-14.fc36.x86_64             opencv-core-4.5.5-9.fc36.x86_64   spotify-client-1:1.1.84.716-2.fc36.noarch  
  steam-1.0.0.74-7.fc36.i686    x264-libs-1:0.164-7.git19856cc.fc36.x86_64  

Complete!
[root@1656943212 BEEDELLROKEJULIANLOCKHART]# dnf remove unitedrpms
Dependencies resolved.
============================================================================================================================================================
 Package                              Architecture                     Version                                Repository                               Size
============================================================================================================================================================
Removing:
 unitedrpms                           noarch                           36-20.fc36                             @@commandline                           4.3 k

Transaction Summary
============================================================================================================================================================
Remove  1 Package

Freed space: 4.3 k
Is this ok [y/N]: Y
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                    1/1 
  Erasing          : unitedrpms-36-20.fc36.noarch                                                                                                       1/1 
  Verifying        : unitedrpms-36-20.fc36.noarch                                                                                                       1/1 

Removed:
  unitedrpms-36-20.fc36.noarch                                                                                                                              

Complete!

…is most of the relevant log.

You should be able to remove those packages, then reinstall the libavdevice and libdca packages from rpmfusion

At the moment I cannot tell which package would replace the x256-libs package but I do know that the rpmfusion repo supports h.256 video.

If I were to remove the package, it would remove hundreds of dependencies, and some that are dependent upon it, of which some are important software (vlc, etcetera).

If you use the --noautoremove option it will give you a much reduced list of those to be removed. You could then save that list and reinstall any needed packages after the removal.

You have a choice.

  1. Clean up the problem (which involves removing the package installed from a 3rd party repo and reinstalling from a fedora-compatible repo)
  2. Leave it as is and hope that in the future, with a version update of the package, it might get replaced from the fedora-compatible repo.
  3. Do a complete new install and reinstall all the needed packages without using the 3rd party repo.

In any case whatever the issue is right now will likely continue until the mismatched packages are properly replaced.

Once the problematic repository is removed, one can use:

dnf list extras
→ to list any packages not provided by a default enabled repository

dnf distro-sync
→ to synchronise with the distribution

There is not necessarily the same package name convention.

Ultimately, you can display which vendor provide the package and removes the remaining ones with:
rpm -qa --qf %{NAME}-%{VENDOR}\\n

1 Like