DNF5-REINSTALL(8)

πŸ’– dnf5-reinstall β€” the Reinstall Command πŸ’–

okay bestie, welcome to the dnf5-reinstall(8) page, part of the dnf5 manual fam. this one's short, sweet, and honestly kind of iconic β€” it's the "run it back, no notes" of package management. let's go πŸŽ€


✨ NAME ✨

dnf5-reinstall β€” the Reinstall Command. she does exactly what it says on the tin and she does it flawlessly πŸ’…


🌸 SYNOPSIS 🌸

dnf5 reinstall [global options] <package-spec-NPFB>...

πŸ¦‹ DESCRIPTION πŸ¦‹

so the reinstall command in DNF5? her whole job is reinstalling packages. which packages, you ask? the ones you name in the package-spec-NPFB arguments. that's it. that's the gig. she's not complicated, she's just good πŸ’–


πŸ‘‘ OPTIONS πŸ‘‘

every single one, no skips, we're eating the whole plate πŸ“

  • --allowerasing β€” lets packages get removed so any potential dependency problems can be resolved. yes, she will throw things overboard to keep the ship floating 🫢
  • --skip-broken β€” deals with dependency problems by yeeting the packages that are causing the problem out of the transaction. problem? gone. (the packages? also gone 😭)
  • --skip-unavailable β€” lets her skip over packages that literally cannot be reinstalled. everything else? still getting reinstalled. no package left behind except the ones that had to be left behind ✨
  • --allow-downgrade β€” turns ON downgrading of dependencies while resolving the operation you asked for.
  • --no-allow-downgrade β€” turns OFF downgrading of dependencies while resolving the operation you asked for. the mirror image of the one above, lowkey obsessed with the symmetry πŸ’œ
  • --installed-from-repo=REPO_ID,... β€” filters the installed packages by the ID of the repository they were originally installed from.
  • --from-repo=REPO_ID,... β€” packages (or their provides) that you typed explicitly on the command line will only be looked up in the repos you list here. those repos get automatically enabled. repo enabling and disabling still applies, so don't get cute. dependencies of those packages? resolved from any enabled repository, no restrictions πŸ’«
  • --from-vendor=VENDOR,... β€” a list of vendors separated by commas or spaces. globs are supported, like so: --from-vendor='Fedora\ project, vendorA, vendorB*, vendorC'. packages (or their provides) that you explicitly named on the command line will only be looked up from the vendors you specified. the vendor change check gets bypassed for these packages. but for packages that satisfy dependencies, the vendor is ignored β€” or the vendor change policies still apply if allow_vendor_change=0. yes bestie, that's a whole situation, read it twice 🧚
  • --downloadonly β€” downloads the resolved package set without executing an RPM transaction. window shopping, but make it functional πŸ›οΈ
  • --offline β€” stores the transaction so it gets performed offline. see the offline command <#offline-command-ref-label>, and dnf5-offline(8) while you're at it.
  • --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. temporary queen behavior, gone by morning πŸ’€
  • --store=PATH β€” stores the current transaction in a directory at the specified PATH instead of running it. the stored transaction can be performed later by the replay command <#replay-command-ref-label>, dnf5-replay(8). heads up though: repository ids in the stored transaction get mangled into @stored_transaction(repo_id) β€” and that's required, because during replaying the stored repositories get recreated and they might collide with repositories that already exist. (this doesn't apply to the special @System repository, she's exempt, she's built different πŸ‘‘)
ngl the --store mangling detail is the kind of thing you only notice when it breaks, so like. now you know. iykyk 🌈

🌈 EXAMPLES 🌈

  1. reinstall the tito package:
dnf5 reinstall tito
  1. reinstall the tito package from a local rpm file:
dnf5 reinstall ~/Downloads/tito-0.6.21-1.fc36.noarch.rpm

this one can be useful f.e. when the package you want isn't available in any enabled repository. local file to the rescue 🫢


⭐ SEE ALSO ⭐


πŸ’œ Author πŸ’œ

See AUTHORS.md in the dnf5 source distribution.


Contributors to the dnf5 project.


and that's the whole page, bestie πŸ’– you just read the dnf5 manual, dated Sep 24, 2026, straight from the dnf5 source distribution. go forth and reinstall something with main character energy. periodt πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from