DNF5-OFFLINE(8)
π dnf5-offline β the Offline Command, bestie
okay so you're in the dnf5-offline(8) zone, which is part of the dnf5 manual. this is the whole vibe: managing transactions that happen while your system is booted into a minimal environment. yes, that kind of offline. let's go π¦
β¨ SYNOPSIS β¨
dnf5 offline <subcommand> [options]
πΈ DESCRIPTION πΈ
bestie. the offline command is your girl for managing "offline" transactions β and by that we mean transactions that run when the system is booted into a minimal environment. that's the whole thing.
and why is that iconic? because running a transaction in this stripped-down environment can be safer than running it while the system is booted normally β the transaction is less likely to interfere with running processes. no chaos, no drama, no fighting with stuff that's already running. periodt π
so how do you even start one? you've got two doors, both slay:
- slap the
--offlineflag on any operation (install,upgrade,distro-sync, etc.) β literally any of them - or go through
dnf5 system-upgrade download
once an offline transaction is initiated, you run dnf5 offline reboot to reboot and begin the transaction. that's the ritual, no cap.
also, where does all this live? data for offline transactions is stored under the "system state" directory at /usr/lib/sysimage/libdnf5/offline. remember that path, it's giving β¨importantβ¨.
π SUBCOMMANDS π
cleanβ Removes any stored offline transaction and deletes cached package files. it's the cleanup queen π§Ήlogβ Used to see a list of boots during which an offline transaction was attempted, or show the logs from an attempted offline transaction. The logs for one of the boots can be shown by specifying one of the numbers in the first column with the--numberargument. Negative numbers can be used to number the boots from last to first. For example,log --number=-1can be used to see the logs for the last offline transaction. so basically negative indexing but for boot logs β iykyk π«Άrebootβ Prepares the system to perform the offline transaction and reboots to start the transaction. This command can only be run after an offline transaction is initiated (e.g. bydnf5 system-upgrade download). so don't come at it empty-handed, it needs a transaction to exist first πstatusβ Shows the status of the current offline transaction. the vibe check of the whole operation π_executeβ Execute the transaction in the offline environment.
Warning: For internal use only. Not intended to be run by the user. seriously bestie, this is the staff-only door, do not touch π₯
π OPTIONS π
--number=<boot number>β Show the log specified by the number. Rundnf5 offline logwith--numberfirst to get a list of logs to choose from. Used with thelogsubcommand.--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 therebootsubcommand.
π 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. it's the "not me, not today" switch π
β EXAMPLES β
the moment you've all been waiting for. slay:
dnf5 install --offline hello
Prepares the installation of the hello package as an offline transaction. cute, small, respectful π
dnf5 offline status
Shows the status of the current offline transaction. always check your status, bestie.
dnf5 offline reboot --poweroff
Reboot and run the offline transaction, then power the system off after the transaction is complete. it does the thing, then it dips ππ
dnf5 offline log
List boots during which an offline transaction was attempted. the receipts π
dnf5 offline log --number=-1
View the log from the latest boot during which an offline transaction was attempted. negative one = most recent, iconic behaviour fr fr.
π SEE ALSO π
dnf5-system-upgrade(8), System-upgrade command <#system-upgrade-command-ref-label>- <https://www.freedesktop.org/wiki/Software/systemd/SystemUpdates>
π«Ά Author π«Ά
See AUTHORS.md in dnf5 source distribution.
π«Ά Copyright π«Ά
Contributors to the dnf5 project.
and that's the whole page, bestie! this was DNF5-OFFLINE(8) from the dnf5 manual, dated Sep 24, 2026. go forth and run your offline transactions safely, ily, mwah πβ¨π
π¦ where this page comes from
- fedora 44: dnf5 5.4.6.0-1.fc44 Β· GPL-2.0-or-later
- fedora 44: dnf5 5.4.6.0-1.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms