Last active
November 25, 2020 07:49
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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