I don’t understand what you’re trying to do. dnf offline-upgrade is explicitly for upgrading ‘offline’, meaning in a minimal environment between boots.
dnf offline-upgrade upgrade is an undocumented subcommand that is an implementation detail of that process.
If you want to perform a standard ‘online’ upgrade, just use dnf upgrade. (This has nothing to do with network connectivity.)
I’m trying to install updates from cached packages.
which this offline-upgrade upgrade apparently was what i needed but it doesn’t work for what ever reason. so how can i do that? because running dnf update just redownloads everything
It doesn’t work because it’s not for that at all; ‘offline’ is being used in a different context. dnf offline-upgrade is just a variant of dnf system-upgrade, but used for normal upgrades rather than upgrading between releases.
If you’ve previously downloaded packages using dnf upgrade --downloadonly, you may be able to use dnf -C upgrade to install those packages without network access.
What do you mean directly?
correct me if i’m wrong. since i couldn’t find any documentation for it i suppose it’s there to install packages downloaded via offline-upgrade donwload so after caching you can run offline-upgrade upgrade and install updates without a reboot.
dnf offline-upgrade is an implementation of systemd’s offline updates scheme, which again has nothing to do with network access.
You’re meant to use dnf offline-upgrade download followed by dnf offline-upgrade reboot. The second command ‘triggers’ the update by creating a symlink at /system-update before rebooting. That’s the trigger file mentioned in the message.
When systemd finds that file on the next boot, it starts a special target that pulls in any services implementing the offline update scheme. It’s that service which runs dnf offline-upgrade upgrade (technically it runs the equivalent /usr/bin/dnf-3 system-upgrade upgrade).
As I said before, that command is an undocumented implementation detail. I’m a bit curious how you found it in the first place.
I can easily see how that fish completion could be misleading. It might be worth filing a bug with fish to have upgrade removed. It’s missing from the man page (man dnf-system-upgrade). I don’t know where they got that description from.