Now, on Silverblue I don’t have dnf on the host system, and rpm-ostree status only shows the general version. And which packages are layered (which the one I choose is pat of)
But I see no way to query the exact version of that layered package that is (apparently) installed on my system.
Well, while dnf is not available on Silverblue, rpm is there. So you can use it in order to get info about a layered package.
(If I’m not totally wrong )
You basically want either rpm -q the-package to show the full package name (including version), or, if you need just the version, rpm -q --queryformat '%{VERSION}' the-package.
A big advantage here is also that this will run faster than dnf. In addition, it also works on base image packages, not just layered packages.
If you want to know how it’s stored internally, IIRC rpm-ostreed’s D-Bus APIs let you get the versions of all layered packages.