tar with xz support enabled

Ryan Schmidt ryandesign at macports.org
Wed Apr 3 08:33:18 PDT 2013


On Apr 3, 2013, at 08:48, Roger Pack <rogerdpack2 at gmail.com> wrote:

> Is there anyway to install a "tar" binary that recognizes/understands
> xz files?  If not I suppose I'd like to request it (or should I file a
> trac ticket?)

/usr/bin/tar and /opt/local/bin/gnutar recognize the "J" flag for decompressing xz files:

tar xJf foo.tar.xz

Curiously they don't seem to support it for compressing. But for that, you can just pipe to xz:

tar c foo | xz > foo.tar.xz




More information about the macports-users mailing list