DNF5-DOWNGRADE(8)
π DNF5-DOWNGRADE(8) β the downgrade command, bestie edition
okay so this is a page from the dnf5 manual, and it's literally all about making your packages go backwards on purpose. iconic behaviour, honestly. let's get into it π¦
β¨ NAME β¨
dnf5-downgrade β the Downgrade Command π
β¨ SYNOPSIS β¨
dnf5 downgrade [options] <package-spec-NPFB>...
β¨ DESCRIPTION β¨
so here's the tea β β the downgrade command in DNF5 takes every package you list in your package-spec-NPFB list and downgrades it to the highest installable version out of all the known lower versions, if that's even possible. slay.
and if you get specific and put a version right there in the argument, and that version is lower than whatever's installed on your machine rn? boom π₯ β it downgrades to that exact one. no cap.
β¨ OPTIONS β¨
--allowerasingβ gives you permission to remove installed packages so any potential dependency drama can actually get resolved. it's giving "we had to break a few eggs" π--skip-brokenβ resolves dependency problems by kicking the problematic packages out of the transaction entirely. bye bestie π--skip-unavailableβ lets you skip the packages that just can't be downgraded (it's not their fault), and every remaining package still gets downgraded. we move π«Ά--allow-downgradeβ turns ON downgrading of dependencies while the requested operation is being resolved.--no-allow-downgradeβ turns OFF downgrading of dependencies while the requested operation is being resolved. the opposite vibe.--installed-from-repo=REPO_ID,...β filters your installed packages by the ID of the repository they were installed from. like a little origin filter π--from-repo=REPO_ID,...β packages (or their provides) that you explicitly name on the command line will only be looked up in the repositories you list here. those repos get automatically enabled β¨. and note: repository enabling and disabling still applies anyway. dependencies of those packages will be resolved from any enabled repository.--from-vendor=VENDOR,...β a list of vendors, separated by commas or spaces. globs are supported, e.g.--from-vendor='Fedora\ project, vendorA, vendorB*, vendorC'. packages (or their provides) that you explicitly name on the command line will only be looked up from the vendors you list. the vendor change check is bypassed for these packages. for packages that satisfy dependencies, the vendor is ignored β or the vendor change policies (ifallow_vendor_change=0) will still be used. iykyk π--downloadonlyβ downloads the resolved package set without executing an RPM transaction. window shopping, basically π--offlineβ stores the transaction so it can be performed offline. see the offline command <#offline-command-ref-label>,dnf5-offline(8).--transientβ only applicable on bootc (bootable containers) systems. performs transactions using a transient overlay which will be lost on the next reboot π. see also the persistence <#persistence-options-label> configuration option.--store=PATHβ stores the current transaction in a directory at the specified PATH instead of running it. that stored transaction can be performed by the replay command <#replay-command-ref-label>,dnf5-replay(8).
heads up bestie: repository ids in the stored transaction are mangled to@stored_transaction(repo_id)β this is required because during replaying the stored repositories get recreated and they might collide with repositories that are already present. (this doesn't apply to the special@Systemrepository, she's built different β¨)
β¨ EXAMPLES β¨
downgrade the nano package to the given version πΈ:
dnf5 downgrade nano-0:6.0-2.fc36
downgrade gcc and glibc, and allow removing installed packages when needed:
dnf5 downgrade gcc glibc --allowerasing
β¨ SEE ALSO β¨
dnf5-specs(7)- Patterns specification <#specs-misc-ref-label>
β¨ Author β¨
See AUTHORS.md in dnf5 source distribution. (the whole squad π«Ά)
β¨ Copyright β¨
Contributors to the dnf5 project. π
and that's the whole page, bestie!! π this was the dnf5 manual, page DNF5-DOWNGRADE(8), last touched Sep 24, 2026 β go forth and downgrade responsibly, mwah π πβ¨
π¦ where this page comes from
- fedora 44: dnf5 5.4.6.0-1.fc44 Β· GPL-2.0-or-later
- fedora 44: dnf5 5.4.6.0-1.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms