5

yum install package means:

  • if package is not yet installed, install the latest version
  • if package is already installed, update to the latest version

dnf install package means:

  • if package is not yet installed, install the latest version
  • if package is already installed, don't do anything

how can I simulate the yum behavior with dnf ? Note that this is also the behavior for zypper and apt-get, so only dnf seems to have a different implementation.

1 Answer 1

2

after looking around, I found the --best option:

dnf --best install package

would always install the latest version.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .