I want to tell whether two tarball files contain identical files, in terms of file name and file content, not including meta-data like date, user, group.
Is tardiff what you're looking for? It's "a simple perl script" that "compares the contents of two tarballs and reports on any differences found between them."