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 (if allow_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 @System repository, 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 ✨


✨ Author ✨

See AUTHORS.md in dnf5 source distribution. (the whole squad 🫢)


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