Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

7
  • I have GNU tar 1.15.1 by default on MacOS X 10.5.8 (Leopard). The latest version from GNU is 1.22 (March 2009). Downloaded and built: it does not appear to have '--no-xattrs' when built on MacOS X. Commented Oct 27, 2009 at 1:40
  • 2
    Instead of exporting this variable to the whole system you can also use env COPYFILE_DISABLE tar -cf archive.tar my_folder/. Commented Jun 18, 2010 at 15:14
  • 1
    @Cawas, the problem was that they showed up in the tarball, which I was then distributing cross-platform, and they have no meaning on a non-Apple operating system. Commented Apr 1, 2011 at 21:22
  • 1
    That's true Jesse, they indeed have no meaning for other OS'es / filesystems. But the info is there and we can cat or type to see what's inside, at very least. And it's usually something simple text that was manually input there. I wouldn't throw it away for backing up but it can be trash in case you want to distribute something cross-platform and specially if it's there by mistake. Just saying the option to leave them is pretty valid.
    – cregox
    Commented Apr 1, 2011 at 22:33
  • 1
    FYI, The export line for Leopard also works for Lion.
    – jjeaton
    Commented May 8, 2012 at 14:44