Re: tar question



On 23 Oct 2006 23:22:43 -0700, chrispatton@xxxxxxxxx
<chrispatton@xxxxxxxxx> wrote:
I'm installing MLton on my computer. It untars into a director called
"usr". The tree looks like this:
$ untar -z -xf mlton-20051202-1.i386.tar.gz
$ tree -d
usr
|-- bin
|-- lib
`-- (** lots of files and folders... **)
|-- man
| `-- man1
`-- share
`-- doc
`-- mlton
(** lots of files and folders... **)

obviously it wants me to put the binary files in /usr/bin, the lib
files in /usr/lib, and the man files in /usr/man/man1, etc. Is there a
way to untar these files right into there folders?

If the file was tarred with absolute pathnames, GNU tar ignores the
leading / by default, but -P reverses this. Otherwise use the -C option
or "cd /" before extracting the tar file.


--
Fifty flippant frogs
Walked by on flippered feet
And with their slime they made the time
Unnaturally fleet.
.