dnf has a distro-sync option which is used to synchronize installed packages to the latest available versions. It does the necessary upgrades, downgrades or keeps selected installed packages to match the latest version available from any enabled repository. If no package is given, all installed packages are considered.
The distro-sync option of DNF is similar to yum’s update option. The following is an example of the distro-sync option:
# dnf distro-sync Last metadata expiration check: 0:00:38 ago on Thu 05 Sep 2019 05:44:31 AM UTC. Dependencies resolved. ======================================================================================================================================================================== Package Arch Version Repository Size ======================================================================================================================================================================== Upgrading: pango x86_64 1.42.4-5.el8_0 rhel-8-appstream-rhui-rpms 297 k libgs x86_64 9.25-2.el8_0.3 rhel-8-appstream-rhui-rpms 3.1 M Transaction Summary ======================================================================================================================================================================== Upgrade 2 Packages Total download size: 3.3 M Is this ok [y/N]: N Operation aborted.
This command shows the same behaviour as yum update, and both can be used to upgrade all packages on the system:
# yum update Last metadata expiration check: 0:01:16 ago on Thu 05 Sep 2019 05:44:31 AM UTC. Dependencies resolved. ======================================================================================================================================================================== Package Arch Version Repository Size ======================================================================================================================================================================== Upgrading: pango x86_64 1.42.4-5.el8_0 rhel-8-appstream-rhui-rpms 297 k libgs x86_64 9.25-2.el8_0.3 rhel-8-appstream-rhui-rpms 3.1 M Transaction Summary ======================================================================================================================================================================== Upgrade 2 Packages Total download size: 3.3 M Is this ok [y/N]: N Operation aborted.