When a script cannot find ptar, establish whether the job only creates a tar archive or also uses ptardiff to compare files and ptargrep to search them. A readable archive verifies creation; it does not test the other tools.
Check the executables and module independently
apk list --installed perlbase-archive
for tool in ptar ptardiff ptargrep; do command -v "$tool" || echo "missing: $tool"; done
perl -MArchive::Tar -e 'print "Archive::Tar loaded\n"'
On 25.12.3, scripts were seen failing at startup on Data/Dumper.pm or Getopt/Std.pm. Our 25.12.6 x86/64 guest loaded Archive::Tar after installing perlbase-archive 5.40.0-r6, but none of the three executables was on the path. Check Text::Diff separately in the environment where it is needed.
Create a sample and read back its member and contents
work=$(mktemp -d) || exit 1
cd "$work" || exit 1
printf '%s\n' 'lab54 archive member' > member.txt
perl -MArchive::Tar -e 'Archive::Tar->create_archive("member54.tar",0,"member.txt") or die'
perl -MArchive::Tar -e 'print "$_\n" for Archive::Tar->list_archive("member54.tar")'
tar -xOf member54.tar member.txt

The first Perl operation creates an uncompressed archive. The second lists its members. The last command writes one member to standard output. Check both its name and text. If creation works but an old script still fails, inspect the exact program and options it calls. Test comparison or regex search separately in an environment that provides those tools. This example uses only your files in a temporary directory.
Comments