Ask Your Question

Yum vs Dnf

asked 2015-09-24 07:36:21 -0500

shrimpandwalrus gravatar image

Fairly new to linux, running Fedora 22. Currently, if I use yum, is it actually running yum, or is it a symbolic link to dnf? And can someone explain in layman terms the advantages of dnf over yum?

edit retag flag offensive close merge delete


Thanks for the help, I forgot to look into the man pages.

shrimpandwalrus gravatar imageshrimpandwalrus ( 2015-09-24 10:12:04 -0500 )edit

First thing you might wanna do, is putting fastestmirror=1 at the end of your /etc/dnf/dnf.conf. DNF downloads quite a bit of package data, and that could be slowed down if you are not using a fast mirror server.

No clue, why this is not enabled by default..?

florian gravatar imageflorian ( 2015-09-24 21:35:09 -0500 )edit

@Florian: It's not enabled by default because DNF already gets a list of mirror speeds. From man dnf.conf: "fastestmirror: If enabled a metric is used to find the fastest available mirror. This overrides the order provided by the mirrorlist/metalink file itself. This file is often dynamically generated by the server to provide the best download speeds and enabling fastestmirror overrides this."

Tullo_x86 gravatar imageTullo_x86 ( 2015-10-19 10:04:32 -0500 )edit

@Tullo_x86: Thanks for the hint. I didn't know that.

florian gravatar imageflorian ( 2015-10-19 11:31:45 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2015-09-24 09:30:04 -0500

florian gravatar image

updated 2015-09-24 09:30:32 -0500

There is not much difference between dnf and yum but yum got replaced by dnf in Fedora 22. So, the best would be to forget about yum, and just use dnf. There is nothing that you can't achieve with dnf.

type man dnf or dnf --help to see what functions dnf offers.

edit flag offensive delete link more


Check out features like sudo dnf history , or sudo dnf info 1, or sudo dnf history userinstalled, ... yumex is actually a nice graphical frontend to use dnf.

florian gravatar imageflorian ( 2015-09-24 22:22:22 -0500 )edit

Question Tools

1 follower


Asked: 2015-09-24 07:35:54 -0500

Seen: 1,223 times

Last updated: Sep 24 '15