14 Jun
2007
14 Jun
'07
12:58 a.m.
well..you can cheat with option 1, due to the fact that tar files are just files stuck together, and if the file is 'well packed'. If the file you are looking for (.pkginfo) appears early in the tar.. head -n100 kernel26-2.6.21.3-2.pkg.tar.gz | tar -xzOf - .PKGINFO 2>&1 | sed -rn 's/pkgname = (.*)/\1/p' Horrible way to do it though... i almost feel bad for having thought of it.