From Fedora Project Wiki
Upgrading
The dnf plugin to migrate metadata from yum to dnf is no longer installed by default. Users upgrading from releases older than Fedora 22 should install the dnf-plugins-extras-migrate
package, and after the upgrade, run the command dnf migrate
to preserve their package transaction history.