DNF – The Next Generation Package Management Utility for RPM Based Distributions

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Use our Linode referral link if you plan to buy VPS (it starts at only $10/month).
  4. Support us via PayPal donate - Make a Donation
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux course in 5 Days

We are thankful for your never ending support.

Receive Your Free Complimentary eBook NOW! -

Download Free Linux eBooks

Advanced Bash-Scripting Guide
Linux Bible
A Newbie's Getting Started Guide to Linux
Introduction to Linux - A Hands on Guide

You may also like...

9 Responses

  1. Ravichandran says:

    I have installed DNF in RHEL 7. While i try to update dnf, i got the below error.
    # dnf update
    “Failed to open: /var/cache/dnf/x86_64/7.1/x86_64/7.1/epel/repodata/78892cbf09fce6504b691ad19bf59507d65da9eacdebc0aa6ed1d053b502f829-updateinfo.xml.bz2.”

    • Ravi Saive says:

      @Ravichandran,

      Try to run following series of commands to fix that error.

      # dnf clean all
      # dnf repolist
      # dnf upgrade
      

      If you still see the same error, try to disable extra add-on repositories like EPEL or RepoForge, these repositories are for RHEL/CentOS Only.

      First, check your /etc/yum.repos.d/ directory, here if you find other than fedora.repo, fedora-updates.repo, and fedora-updates-testing.repo.

      Remove or disable them and then run the following command.

      # dnf dnf distro-sync
      

      Hope, it will fix your problem..

      • DUWENINK says:

        i had alway find this problem but when i operated this what you told ,it doen’t work [duwenink@localhost ~]$ su
        密码:
        [root@localhost duwenink]# dnf clean all
        清理软件仓库: rpmfusion-free rpmfusion-free-updates fedora epel updates
        清理所有内容
        [root@localhost duwenink]# dnf repolist
        Extra Packages for Enterprise Linux 7 – x86_64 2.4 MB/s | 10 MB 00:04
        Failed to open: /var/cache/dnf/epel-2b6dfc5904c26562/repodata/b0b669b11555557436c35421a026af14feafd01ee60059737cddbc39853c66eb-updateinfo.xml.bz2.
        [root@localhost duwenink]# dnf upgrade
        RPM Fusion for Fedora 23 – Free 1.6 MB/s | 738 kB 00:00
        Failed to open: /var/cache/dnf/epel-2b6dfc5904c26562/repodata/b0b669b11555557436c35421a026af14feafd01ee60059737cddbc39853c66eb-updateinfo.xml.bz2.

        • Ravi Saive says:

          @Duwenink,

          Try to run the following commands to fix that error”

          # dnf clean all
          # dnf repolist
          # dnf upgrade
          
  2. Jeff says:

    You may wish to work on your english a bit because this is full of errors making it difficult to read, but thanks for the article.

  3. Roshan Gayaki says:

    I would suggest to have some kind of patching solution integrated to this tool.. All the Best

  4. Hunkah says:

    Maybe you could write about how DNF/Libsolv/Hawkey compares to APT-GET and what the benefits are to using one over the other…

    Or possibly how the new Gnome 3 “Software” interacts with DNF.

    • Avishek Kumar says:

      May be!

      But the theme of article was Yum replacement with DNF. As far as software interaction matters, let the project attain some level of maturity.

Got something to say? Join the discussion.

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

Join Over 95000+ Linux Users
  1. 77,543
  2. 4,213
  3. 35,218

Enter your email to get latest Linux Howto's