When does rpm-ostree need internet? | an explanation of every rpm-ostree step?

Rpm-ostree updates take often long and are not as easy to understand.

It would be good to know when you need internet and when not. Examples:

  • plug out / disable tethering/hotspot from phone
  • carry laptop out of wifi range

Afaik after “resolving dependencies” it doesnt need internet anymore.

1 Like

rpm-ostree upgrade has three separate phases where it downloads from the network:

  • Pulling the latest base image from the OSTree remote. This is happening when you see “Receiving objects”.
  • Downloading the latest repo metadata for client-side dependency resolution (“Updating metadata for …”). This only happens if rpm-ostree is operating in ‘hybrid’ mode because you have at least one layered package, etc.
  • Downloading layered packages (“Downloading from …”).

“Resolving dependencies” happens between the last two, assuming there are any packages to download. I think the beginning of “Importing packages” would be the earliest point where no further network access is necessary. You won’t see that when no packages are downloaded, so you can also look for “Checking out packages”.

Unless you have a very slow network or disk, rpm-ostree transactions taking an extremely long time may be an indicator that you have too many layered packages.

1 Like

Indeed, RPM-ostree updates can sometimes take a while and may not be straightforward.

  1. Dependency Resolution Phase: During this phase, internet connectivity is required to fetch and resolve dependencies. Once this step is completed, the system has all necessary packages locally.
  2. No Internet Needed Post-Dependency Resolution: After resolving dependencies, internet connectivity is not required for the actual installation of updates. You can carry out updates without internet access, such as by disabling tethering or moving out of WiFi range, once dependencies are resolved.

By understanding these points, you can better plan and manage RPM-ostree updates, ensuring a smoother experience, especially in scenarios where internet connectivity is limited or unavailable.