Before turning off my Laptop (which runs Fedora 36) I like to run sudo dnf offline-upgrade download -y && sudo dnf offline-upgrade reboot || sudo shutdown now
So that all pending updates get installed automatically and I don’t have to worry about using the Software Center or shutting down via GNOME.
The only problem is by running sudo dnf offline-upgrade reboot
my Laptop reboots as the command states and I would like it to shutdown and install the rest of the updates the next time I start my Laptop.
Is there a way (maybe using systemd) to shutdown into the upgrade process via Command Line?
2 Likes
Hi @tonischmitt , welcome to the community! Please take a look at the introductory posts in the #start-here category if you’ve not had a chance to do so yet.
I don’t think there’s a way to do this yet, because what we effectively want to do is ask dnf
to poweroff instead of reboot once it completes the process. I had a look at man dnf-offline-upgrade
just to be sure too. I think it’ll be best to request this feature, and I expect the devs should be able to add it quite easily to the offline-upgrade plugin itself.
1 Like
Thank you for suggesting that! I maybe thought there way a way to use a special systemd command to boot into that upgrading process manually because I found this Post from fedoraproject but it is for an very old version and I could not understand much of this post 
1 Like
I’m not very well versed with how dnf actually does the offline-upgrade, which is why I think it’s probably best to ask the devs. If there’s an easy way of doing it already, they’d be able to tell us 