Fresh DNF for RHEL 7 and CentOS 7

DNF is in EPEL for more than one year, unfortunately there was still the old DNF-0.6.4 version. Over that time in DNF were implemented a lot of great features and plenty of bugs have been fixed. DNF (especially its libraries) could not be updated in EPEL repository because of its policy. Now we have prepared fresh DNF-1.1.9 for RHEL 7 and CentOS 7 users in our COPR repository. Note this is still experimental preview not supported by Red Hat.

In order to get DNF-1.1.9 in RHEL 7 or CentOS 7:Enable EPEL repository for additional DNF dependencies:

# wget
# sudo rpm -Uvh epel-release-latest-7*.rpm

Add DNF stack repository:

# cat <<EOF > /etc/yum.repos.d/dnf-stack-el7.repo
name=Copr repo for dnf-stack-el7 owned by @rpm-software-management

Install DNF:

# yum install dnf

Enjoy the newest DNF ;)

8 thoughts on “Fresh DNF for RHEL 7 and CentOS 7

  1. Just tried to install it on a fresh CentOS 7 and I’ve got missing dependency error.

    Error: Package: python2-dnf-1.1.9_1-16ge900fce.el7.centos.noarch (dnf-stack-el7)
    Requires: python-libcomps >= 0.1.6

    I guess I need EPEL enabled, also :)

      1. I got below error:
        Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again

Leave a Reply to Jan Šilhan Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Current day month ye@r *