Skip to content

Instantly share code, notes, and snippets.

@jberkus
Created February 10, 2017 22:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jberkus/75168b0c0cd3656c4fd8f57d1a3028ba to your computer and use it in GitHub Desktop.
Save jberkus/75168b0c0cd3656c4fd8f57d1a3028ba to your computer and use it in GitHub Desktop.
Example for ostree update
As an example, let's say that we have a Fedora Atomic host which is on the default ref. That ostree will now be updated every two weeks, and only every two weeks:
```
-bash-4.3# date
Fri Feb 10 21:05:27 UTC 2017
-bash-4.3# rpm-ostree status
State: idle
Deployments:
● fedora-atomic:fedora-atomic/25/x86_64/docker-host
Version: 25.48 (2017-02-01 20:49:44)
Commit: 44599db3ddf43fdefb5407d217fb575851134c7618d1a98960b25e0aabe2b8f4
OSName: fedora-atomic
-bash-4.3# rpm-ostree upgrade
Updating from: fedora-atomic:fedora-atomic/25/x86_64/docker-host
1 metadata, 0 content objects fetched; 569 B transferred in 1 seconds
No upgrade available.
```
If you want the daily ostree update instead, as you previously had, you need to switch to the _updates_ ref:
```
-bash-4.3# rpm-ostree rebase --reboot fedora-atomic/25/x86_64/updates/docker-host
761 metadata, 3091 content objects fetched; 201487 KiB transferred in 73 seconds
Copying /etc changes: 29 modified, 0 removed, 88 added
Transaction complete; bootconfig swap: yes deployment count change: 0
Freed objects: 190.6 MB
Changed:
docker 2:1.12.6-5.git037a2f5.fc25 -> 2:1.12.6-6.gitae7d637.fc25
...
xkeyboard-config 2.19-1.1.fc25 -> 2.20-2.fc25
[fedora@ip-172-31-12-34 ~]$ sudo su -
-bash-4.3# rpm-ostree status
State: idle
Deployments:
● fedora-atomic:fedora-atomic/25/x86_64/updates/docker-host
Version: 25.55 (2017-02-10 13:59:37)
Commit: 38934958d9654721238947458adf3e44ea1ac1384a5f208b26e37e18b28ec7cf
OSName: fedora-atomic
fedora-atomic:fedora-atomic/25/x86_64/docker-host
Version: 25.48 (2017-02-01 20:49:44)
Commit: 44599db3ddf43fdefb5407d217fb575851134c7618d1a98960b25e0aabe2b8f4
OSName: fedora-atomic
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment