Power outtage while DNF was updating, and now I get "libdnf/_conf.so: undefined symbol"

I too experienced a power outage while DNF was updating my system and now this what I get:
Traceback (most recent call last):
** File “/usr/bin/dnf”, line 57, in **
** from dnf.cli import main**
** File “/usr/lib/python3.9/site-packages/dnf/init.py”, line 30, in **
** import dnf.base**
** File “/usr/lib/python3.9/site-packages/dnf/base.py”, line 29, in **
** import libdnf.transaction**
** File “/usr/lib64/python3.9/site-packages/libdnf/init.py”, line 12, in **
** from . import conf**
** File “/usr/lib64/python3.9/site-packages/libdnf/conf.py”, line 13, in **
** from . import _conf**
ImportError: /usr/lib64/python3.9/site-packages/libdnf/_conf.so: undefined symbol: _ZN6libdnf10ConfigRepo14failovermethodB5cxx11Ev
Help will be immensely appreciated.

No need to open the same topic again.
@bulgroz try to download dnf here and install it with

sudo rpm -i sample_file.rpm

To download in terminal you can use wget