Error: Transaction test error: file /etc/dnf/dnf.conf from install of libdnf5-5.0.14-1.fc39.x86_64 conflicts with file from package dnf-data-4.16.1-1.fc38.noarch

I pulled the latest image of Fedora from Docker using fedora:latest. Then I installed curl, dnf-utils & libxcrypt-compat using the command “yum update -y && yum install -y curl info && dnf install -y --skip-broken dnf-utils libxcrypt-compat”. After that, I created a new repository config file with the following contents:

[rawhide]
name=Fedora - Rawhide - Developmental packages for the next Fedora release
#baseurl=http://download.example/pub/fedora/linux/development/rawhide//Everything/$basearch/os/
metalink=https://mirrors.fedoraproject.org/metalink?repo=rawhide&arch=$basearch
enabled=1
countme=1
metadata_expire=6h
repo_gpgcheck=0
type=rpm
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
skip_if_unavailable=False

Then I tried to update dnf using “yum update -y dnf” but I got the following error:

Error: Transaction test error: file /etc/dnf/dnf.conf from install of libdnf5-5.0.14-1.fc39.x86_64 conflicts with file from package dnf-data-4.16.1-1.fc38.noarch.

This error started occurring yesterday. Can someone please help me with this issue?

Hello @krishnastk , weclome to :fedora: ,
The issue you are experiencing is likely this one noted here with the work around.

1 Like

Yeah, thats the issue, but…whats your goal here?

Why not simply pull fedora:rawhide image if you need that?

Note, if you want an up to date image, it is better to pull from quay.io than from Docker Hub:

FROM quay.io/fedora/fedora:rawhide

as the images are updated more frequently there.