Skip to content

Instantly share code, notes, and snippets.

@tpopela
Last active November 25, 2020 07:49
Show Gist options
  • Save tpopela/7fad3adf53c0432497ce31a076d52c86 to your computer and use it in GitHub Desktop.
Save tpopela/7fad3adf53c0432497ce31a076d52c86 to your computer and use it in GitHub Desktop.
Show the overlayed packages on Silverblue/CoreOS together with all the dependencies (as opposed to the `rpm-ostree status` output)
#!/bin/sh
verboseStatus=$(rpm-ostree status -b -v)
baseCommitID=$(echo "$verboseStatus" | grep -Po "BaseCommit:\ \K.*$")
commitID=$(echo "$verboseStatus" | grep -v "BaseCommit" | grep -m 1 -Po "Commit:\ \K.*$")
rpm-ostree db diff "$baseCommitID" "$commitID"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment