Skip to content

bootstrap.sh: Make use of yum instead of dnf on Fedora

Jeremy Soller requested to merge genodeftest:patch-1 into master

Created by: genodeftest

Fully adapt this script to using dnf instead of yum on Fedora.

Problem: Fedora ships dnf in all supported versions replacing yum in default installations. If a user doesn't have yum installed, detection of Fedora and installation of packages might fail.

Solution: dnf is mostly a drop-in replacement for yum so you can just swap command names

Changes introduced by this pull request:

  • replace usage of yum through dnf
  • update detection of fedora installation to use dnf instead of yum

Drawbacks: Old (outdated and unsupported) installations of Fedora will not be able to run this script correctly any more. This is true for Fedora ≤ 21, Fedora 22 was released 2.5 years ago. Some ultra-conservative users keep using yum instead of dnf, they will see this script failing but probably won't be using "bleeding-edge" technology like Rust anyway.

TODOs: None

Fixes: None

State: ready to be merged

Blocking/related: None

Merge request reports