Yesterday’s journal shows how to display the contents of a DEB package.
ar -t google-chrome-stable_current_amd64.deb
debian-binary
control.tar.xz
data.tar.xz
How about to display the content of a specific file? Using ar, we provide p (to print file), google-chrome-stable_current_amd64.deb (archive-file), and data.tar.xz (specific file). data.tar.xz is then piped to tar so tar can extract the contents from the stream. xJOf means to extract, decompress .xz file, write to standard out (stdout) and read from standard in (stdin). jq -c formats the piped data as a clean JSON content.
ar p google-chrome-stable_current_amd64.deb data.tar.xz | tar -xJOf - ./opt/google/chrome/MEIPreload/manifest.json | jq -c .
{"name":"MEI Preload","icons":{},"version":"1.0.7.1652906823","manifest_version":2,"update_url":"https://clients2.google.com/service/update2/crx","description":"Contains preloaded data for Media Engagement"}