Update all packages on Fedora with dnf

Refresh repository metadata and upgrade every installed package to its latest available version on DNF-based systems.

LinuxsystemTerminalMedium risk
Run sudo dnf upgrade to install all available package updates on Fedora.

01Command

Command
$ sudo dnf upgrade

02What it does

dnf upgrade resolves dependencies, downloads new RPMs, and removes any package marked obsolete; 'dnf update' is an alias that does the same. DNF refreshes metadata automatically (by default when it is older than 48 hours), so no separate 'update metadata' step is needed. Install a single package's update with sudo dnf upgrade <name>, preview with dnf check-update, and search history after a problem with dnf history — the matching dnf history undo <id> can roll a transaction back. On RHEL 8/9 the equivalent tool may be invoked as microdnf or yum (a dnf symlink).

03Risk

RiskMedium risk
RequirementsFedora, RHEL 9+, CentOS Stream, or another DNF-based distro with sudo access
!Warning: A full upgrade can pull in a new kernel and restart services; plan reboots around it rather than running it on production boxes mid-day.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

  • DNF Command Reference
    DNF documentation · vendor-doc · 2026-09-17
    Evidence: The DNF command reference documents 'dnf upgrade' as upgrading each package to the latest available version, obsoleting 'update'.

Last verified: 2026-09-17 · Category: System & Settings

06Related solutions