Sometimes tar files have tar files, and it might be nice to read the contents of some files several layers deep. Here's how we can do it with Ruby and Python3 with no external dependencies.
We can create a layered tar file (a tar file containing other tar files) using docker save
or podman save
% podman save fpm-ubuntu-18.04 -o test.tar