[CentOS] Updating a package to one from a different repository

Tue Mar 29 14:02:09 UTC 2022
Johnny Hughes <johnny at centos.org>

On 3/21/22 09:32, Kenneth Porter wrote:
> At some point I updated fail2ban from a copr repo to get the latest 
> release. That repo no longer exists but a newer version is available in 
> EPEL. Is there a direct way to get yum to update using the different 
> repo? Or do I need to save my config and DB, erase the old version, and 
> install the new one from EPEL?

That would totally depend on the versions.  If they are close (and EPEL 
is newer), you should be able to just upgrade.

If the copr one was newer ... you would have  to do something like 
distrosync option of dnf (or yum) to get it.

Depending on how they were compiled and how close the versions are .. 
you may need to reconfigure any config files.

All of this is case by case, and true for any package where you move to 
another source for the packages.