Per la transazione offline: https://dnf5.readthedocs.io/en/latest/c ... -ref-label
Quindi, volendo si può replicare ciò che fa Discover e GNOME Software: upgrade > poweroff--poweroff
The system will power off after the transaction is completed instead of restarting. If the transaction failed, the system will reboot instead of powering off even with this flag.
Used with the reboot subcommand.
Environment
DNF_SYSTEM_UPGRADE_NO_REBOOT
If set, the system won’t be rebooted or powered off by DNF5 when the normal work flow would do so.
Examples
Prepares the installation of the hello package as an offline transaction.Codice: Seleziona tutto
dnf5 install --offline helloShows the status of the current offline transaction.Codice: Seleziona tutto
dnf5 offline statusReboot and run the offline transaction, then power the system off after the transaction is complete.Codice: Seleziona tutto
dnf5 offline reboot --poweroffList boots during which an offline transaction was attempted.Codice: Seleziona tutto
dnf5 offline logView the log from the latest boot during which an offline transaction was attempted.Codice: Seleziona tutto
dnf5 offline log --number=-1




