Ask Your Question

Can I initiate an offline update from a command prompt?

asked 2013-08-07 12:20:57 -0500

deanhunter gravatar image

updated 2013-08-10 20:29:31 -0500

FranciscoD_ gravatar image

An offline update cam be initiated from the Gnome shell by selecting "Install Updates & Restart". Can the same process be initiated from a command prompt?

edit retag flag offensive close merge delete

4 Answers

Sort by ยป oldest newest most voted

answered 2018-06-03 20:23:02 -0500

Florian Margaine gravatar image

In case anyone still cares about that, this is what I need on Fedora 28:

pkcon refresh # Refresh the list of packages.
pkcon --only-download update # Download the packages to update. Exit code is 5 if there's no update.
pkcon offline-trigger # Make sure fedora will boot into "offline upgrade" mode.
edit flag offensive delete link more

answered 2013-08-07 14:32:33 -0500

shaiton gravatar image

It's a systemd feature implemented in gnome-shell. I don't think yum has it, but PackageKit does. Try pkexec /usr/libexec/pk-trigger-offline-update (or is it pk-offline-update ?)

Just found that on the README, please test :)

edit flag offensive delete link more

answered 2013-08-10 17:42:31 -0500

rstrode gravatar image

You may want to run pkcon get-updates --only-download before touching the trigger file.

edit flag offensive delete link more

answered 2013-08-11 18:15:35 -0500

deanhunter gravatar image

Thank you for the clues. Here is what works for me:

ssh root@$host "if pkcon get-updates; then /usr/libexec/pk-trigger-offline-update; reboot; fi"
edit flag offensive delete link more

Question Tools


Asked: 2013-08-07 12:20:57 -0500

Seen: 771 times

Last updated: Jun 03 '18