%maint ALL=(ALL) NOPASSWD:/usr/bin/snap refresh, /usr/bin/needs-restarting, /usr/bin/dnf needs-restarting # Using -C -q instead of -Cq because yum sucks at this. dnf can cope with it, but in case of # moving forth to a yum-only system... %maint ALL=(ALL) NOPASSWD:/usr/bin/dnf -q makecache,/usr/bin/dnf -C -q check-upgrade %maint ALL=(ALL) NOPASSWD:/usr/bin/dnf -q -y upgrade