27 ‘DNF’ (Fork of Yum) Commands for RPM Package Management in Linux

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 courses

We are thankful for your never ending support.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

16 Responses

  1. Zhichang Yu says:

    Can dnf list the files of a package without installing it?
    On debian, apt-file is able to do that:
    $ apt-file list iozone3
    iozone3: /usr/bin/fileop
    iozone3: /usr/bin/iozone

  2. Andrew says:

    I agree with @Robert: I believe systemd will help unify and simplify Linux administration, improve security, and create opportunities for new features such as nspawn’s light-weight, system level process virtualization (maybe not a perfect description but check it out anyway).

  3. Tristan Mendoza says:

    Go, go, go, DoNut Fork!

  4. pavan says:

    not able to install f77
    after installing fedora 22 plz give me right instructions

  5. Robert says:

    Linux needs to move forward. Fedora and RHEL are updating these systems because they are holding Linux in the past.

    SystemD actually makes admin tasks easier and less likely to break with package updates. Settings set by Admins are in different location to settings delivered in packages. It also provides a lot of feed back in the service status output, including which config files are used. Also systemd does many things that traditional init did not, event driven, parallel starts and actually monitoring the services it manages instead of the sysV start it an hope.

    In short systemd is a change that was desperately needed to modernise and simplify Linux and simplify the administration of Linux. It is an system manager and not just an init system, which is why it is quite an all encompassing change.

    DNF I feel is the same. I have read there where fundamental problems in the resolving of dependencies in YUM and I know I have broken Linux with updates.

    I suggest take a little time to read up and try it out before dismissing the upgrades. I know I wasn’t so keen on systemd until I learned a little more about it

  6. Rohit says:

    I also agree with you,
    As init and yum both are working good in older versions of Linux.
    In new dist. Linux they replace init with systemd and now in future yum will replace by dnf..

  7. Jalal Hajigholamali says:

    Thanks a lot for nice article
    please change
    “Next, install DNS package using yum command from epel-release repository.”
    “Next, install DNF package using yum command from epel-release repository.”

  8. I agree with you. DNF and Systemd are options to yum and SysV init, but Fedora and RHEL are simply doing a substitution despite the users complaint (mostly over Systemd because it is generating incompatibilities). Sad but true.

    As far as I saw in your article, dnf and yum are almost interchangeable.

    I think this attitude gone to hurt Linux badly :(.

    Pietro Pesci Feltri

    • Avishek Kumar says:

      Yeah true! but think the difference in implementation.
      In earlier system
      # service apache2 stop

      # systemctl stop apache2

      In case of DNF/YUM, most of things are same, except better dependency resolution by dnf and deprecated yum.

  9. shivarajnaidu says:

    please write article about yum vs dnf…
    Let us know the merits and demerits of yum and dnf…

    • Avishek Kumar says:

      I have Already covered – Idea to replace yum with DNF, DNF Development,… which you may find in the link below.

      Practically there is nothing to compare between yum and dnf. Both serves the same purpose. In Fedora 22 yum is deprecated and if you fired yum as a habit, your command will be redirected to dnf automatically and you will get a warning that yum is deprecated. Most of the command implementation are same on either package manager, which you may confirm with the examples in the above DNF GUIDE.

Got something to say? Join the discussion.

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

Join Over 300K+ Linux Users
  1. 177,942
  2. 8,310
  3. 37,548

Are you subscribed?