As I was exploring about Fedora 22 (I'm currently using fedora 20), I came to learn that Yum has been replaced by DNF. Basically what I want to know is the difference between those two Fedora package managers and the reason for this change.

up vote 7 down vote accepted

Compared to Yum, DNF offers:

  1. Better dependency management
  2. Support Extensions other than Python
  3. Documented API
  4. Lower memory usage
  5. Less automatic synchronization of metadata with repositories, a process that users often complain "happens too often and takes too much time."

See Will DNF Replace Yum?

  • I'd be interested in understanding what's is objectionable with this answer. If it is factually incorrect, I'd like to correct it. If there is some sort of "style" thing going on, that would be nice to know too. – rocky Jul 4 '15 at 13:27

Differences in the command line behavior is documented extensively in the DNF docs, at Changes in DNF CLI compared to Yum. That also includes a mapping and brief explanation of differences in common plugins and utilities.

As for "why", I recommend this article from DNF developers. In quick summary:

  • the Yum API was organically grown, rather than designed and documented
  • the Yum dep solver was an exercise in cleverness, and sometimes painted itself into corners. New one is a SAT solver and more mathematically correct.
  • code base considered unwieldy and hard to refactor without breaking things

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.