Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!ric From: ric@Apple.COM (Ric Urrutia) Newsgroups: comp.unix.questions Subject: Re: extracting tar files with absolute pathnames relatively Keywords: tar pathname Message-ID: <29796@apple.Apple.COM> Date: 28 Apr 89 18:41:25 GMT References: <1501@cfa205.cfa250.harvard.edu> <2620@ssc-vax.UUCP> <202@psgdc> Organization: Apple Computer Inc, Cupertino, CA Lines: 23 In article <202@psgdc> rg@psgdc.UUCP (Dick Gill) writes: >In article <2620@ssc-vax.UUCP> ray3rd@ssc-vax.UUCP (Ray E Saddler III) writes: >>In article <1501@cfa205.cfa250.harvard.edu>, todd@cfa250.harvard.edu (Todd Karakashian) writes: >>> I am in posession of tapes containing tarfiles with absolute >... >> >>Make a link (symbolic in my instance) in the /usr directory. The >>link name would be 'foo', and would simply point to /temp. >> >>It works quite nicely. >> >This sounds to simple and straightforward to be true. Walk me The way that I do is is by using chroot(1m) to change my root directory for the tar command. For example: If I have a tar tape with absolute pathnames and wish to read them into a new directory, I can do the following: mkdir /new cp /bin/sh /new cp /usr/bin/tar /new chroot /new sh (invoke sh and make /new the new root) tar xvf ???? exit the temporary shell by hitting ctrl/d (this puts you back to normal) rename your directory