File: 11-yum-dnf.bash

package info (click to toggle)
python-diskimage-builder 3.2.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,616 kB
  • sloc: sh: 7,689; python: 3,933; makefile: 34
file content (8 lines) | stat: -rw-r--r-- 206 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
# since f22, dnf is the yum replacement.  Mostly it drops in
# unmodified, so while we transition KISS and use this to choose

if [ $DIB_RELEASE -ge 22 ]; then
    export YUM=dnf
else
    export YUM=yum
fi