Ask Your Question

Is Yum deprecated?

asked 2015-10-07 20:08:09 -0500

baroquequest gravatar image

updated 2015-10-08 11:19:55 -0500

florian gravatar image

With the current 64-bit version, every time I try to update via "yum update" I see a message telling me that Yum has been deprecated, with the command being switched to something else much more difficult to remember. Has Yum really been retired or is my OS hosed? I searched on "yum deprecated" but found nothing.

edit retag flag offensive close merge delete



@baroquequest: Assuming you are talking about Fedora22, I took the liberty of adding it as tag to your question.

florian gravatar imageflorian ( 2015-10-08 11:22:40 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2015-10-07 21:38:59 -0500

florian gravatar image

updated 2015-10-08 11:18:17 -0500

Oh yes, you read correctly. Yum is out of business and has been replaced by dnf with the release of Fedora 22. The commands and functionality remain (almost) the same. So just type dnf wherever you typed yum before.

dnf --help will also tell you more.

Quoting from yum:

Yum command has been deprecated, redirecting to '/usr/bin/dnf '.
See 'man dnf' and 'man yum2dnf' for more information.
To transfer transaction metadata from yum to DNF, run:
'dnf install python-dnf-plugins-extras-migrate && dnf-2 migrate'

You need to give some command
usage: dnf [options] COMMAND

EDIT: dnf has its config file here: /etc/dnf/dnf.conf, and I recommend adding fastestmirror=1 at the end of the file.

EDIT2: I thought this might be helpful as well: dnf uses the .repo-files located in /etc/yum.repos.d/ (as of Fedora 22/23).

edit flag offensive delete link more


Thanks for that succinct answer. It's good news that dnf is syntactically similar to yum. I'll take a look at the help file.

baroquequest gravatar imagebaroquequest ( 2015-10-08 08:32:13 -0500 )edit

It depends on the version of Fedora. dnf has been available for a while, yum was depreciated in Fedora 22 although it is available in the repos if you wish.

bodhi.zazen gravatar imagebodhi.zazen ( 2015-10-08 11:07:49 -0500 )edit

The basic syntax is the same, not all the yum plugins are available yet in dnf.

bodhi.zazen gravatar imagebodhi.zazen ( 2015-10-08 11:08:39 -0500 )edit

Question Tools



Asked: 2015-10-07 20:08:09 -0500

Seen: 6,997 times

Last updated: Oct 08 '15