diskimage-builder/diskimage_builder/elements/centos/environment.d/11-yum-dnf.bash

8 lines
128 B
Bash
Raw Permalink Normal View History

# since CentOS 8, dnf is the yum replacement.
if [[ $DIB_RELEASE == "7" ]]; then
export YUM=yum
else
export YUM=dnf
fi