Quick GTar tip
By fintanr on Jan 09, 2006
Quick tip, if you have a tar archive that has an absolute path in it that you want to, or more likely have to, avoid creating, you can unarchive it using the --no-anchored flag in gtar. As an example, this morning I was extracting files from an, ahem, unusually created archive, that contained paths such as
/net/foo.bardomain/export/file/is/in/here.gzwhich in a firewalled lab is not going to be much use to anyone ;). One of my colleagues, Nicky, suggested taking a look at gtar. So the solution was to use gtar (bundled in /usr/sfw/bin in Solaris 10).
# /usr/sfw/bin/gtar --no-anchored -xvf foo.tar