diff --git a/c8-base-docker.ks b/c8-base-docker.ks
index e22c6f3363f01d8ea4b83c8a051e5b72abc947dd..248854f20cc21302a9716b223892c7dc602ba456 100644
--- a/c8-base-docker.ks
+++ b/c8-base-docker.ks
@@ -102,7 +102,7 @@ find /usr/share/{man,doc,info,gnome/help} \
 #  ldconfig
 rm -rf /etc/ld.so.cache
 rm -rf /var/cache/ldconfig/*
-rm -rf /var/cache/yum/*
+rm -rf /var/cache/dnf/*
 rm -f /tmp/ks-script*
 
 rm -f /usr/lib/locale/locale-archive