What happens when I run rpm-ostree upgrade multiple times without rebooting?

Hi folks! I’m looking forward to diving head-first into Fedora Silverblue during my winter break. I really like the idea of simply downloading an existing ostree and layering packages over it. My question: if I ran rpm-ostree upgrade one day, forgot to reboot, and ran it again a few days later (assuming there is either new versions of layered packages or a new ostree entirely), what would happen? Anything different than just running rpm-ostree upgrade once?

1 Like

Upgrades count only if you reboot, so booting your install with the latest layer/snapshot (unless you use rpm-ostree ex livefs).

From the Red Hat docs (https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux_atomic_host/7/html/installation_and_configuration_guide/managing_atomic_hosts):

If you run rpm-ostree install several times consecutively without rebooting or applying changes live, only the most recent command will take effect. If you install wget and strace consecutively and reboot afterwards, only strace will be present after reboot.

I assume the same is valid for the upgrade. You got me curious about this…

1 Like