1

So my tar version on MacOS doesn't seem to support the zstd or lz4 algorithms, and I am unsure how to update tar or add support for it. My Ubuntu's tar version seems to have support for zstd.

Dr. Light
  • 126
  • 7
  • I think it already implemented. man tar. for compress. --zstd. for decompress, tar x is good enough. – obarisk Mar 28 '23 at 03:32

1 Answers1

1

Here is how you can use zstd with older versions of tar.

tar cvf - "directory" | zstd > "archive.tar.zstd"

You also might want to check out gnu-tar from homebrew.

OpenGears
  • 102
  • 7