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 (7 lines) | stat: -rw-r--r-- 164 bytes parent folder | download
1
2
3
4
5
6
7
# since CentOS 8, dnf is the yum replacement.

if [[ ${DIB_RELEASE} == '8' ]]; then
    export YUM=dnf
elif [[ ${DIB_RELEASE} == '7' ]]; then
    export YUM=yum
fi