Description of problem:
yum has a protected_packages feature that disables the ability to remove yum with yum itself by default but dnf seems to lack it. dnf remove dnf works fine and i haven't tried dnf remove yum but suspect it might work as well.
I don't consider this a systematic Yum feature and so don't plan to support this in DNF. If you want to do 'dnf remove dnf' then by all means do it.
Thanks for the report anyway, this yum/dnf incompatibility should be documented.
Documentation added in d0224a5:
closing as NOTABUG.
I think the protected packages as a *mechanism* is a highly useful one and should be kept around, one way or the other (see below). However *populating* the data is an entirely different matter - for example figuring the mapping between currently running kernel and some installed package is a very distro-specific thing and is best left to a distro-specific plugin.
It'd be possible to implement rpm-level enforcement for install/erase/upgrade/obsolete prevention mechanism, settable on per-package basis (inherited across upgrades I suppose, maybe even obsoletes). James wasn't thrilled wrt such a thing for yum as it already had its own mechanism at the time this option came up, but perhaps here would be a chance to rethink the situation. Note that rpm would also only provide a mechanism, not policy.