Zstandard (zstd) son yıllarda hızla yaygınlaşan modern bir sıkıştırma algoritmasıdır; gzip'e göre belirgin biçimde daha hızlı ve daha küçük çıktı üretir. Linux dağıtımlarında, Docker katmanlarında ve büyük yedek arşivlerinde sık karşılaşılır. macOS ile geldiğinizde .tar.zst dosyasını çift tıklamak otomatik bir açılma sağlamaz; çünkü dahili Arşiv Aracı bu formatı tanımaz. Birkaç pratik yöntem mevcuttur.
1) Homebrew ile zstd kurulumu
En kısa yol, Homebrew üzerinden zstd komut satırı aracını kurmaktır:
Code:
brew install zstd
2) Komut satırı ile açma
İki adımlı klasik yaklaşım:
Code:
zstd -d arsiv.tar.zst -o arsiv.tar
tar -xf arsiv.tar
Code:
zstd -dc arsiv.tar.zst | tar -xf -
3) Tar'ın zstd entegrasyonu
Modern tar sürümlerinde (3.x ve sonrası, macOS 13+) tar zaten zstd'yi destekler:
Code:
tar --use-compress-program=unzstd -xf arsiv.tar.zst
Code:
tar -xf arsiv.tar.zst
4) Apple's Archive Utility neden çalışmıyor?
macOS dahili Arşiv Aracı zip ve tar.gz gibi yaygın formatları açabilir, ama zstd için harici yardımcıya ihtiyaç duyar. Homebrew zstd kurulu olsa bile Arşiv Aracı bunu algılamaz; bu nedenle çift tıklama çoğunlukla işe yaramaz. Çözüm, Finder'da "Aç > zstd" yerine komut satırını veya The Unarchiver gibi üçüncü parti GUI'leri tercih etmektir.
5) The Unarchiver alternatifi
The Unarchiver uygulaması, macOS App Store'da ücretsiz dağıtılan ve zstd dahil pek çok formatı tanıyan bir araçtır. Yüklendikten sonra .tar.zst dosyalarına çift tıklamak çalışır. Geliştirici olmayan kullanıcılar için en pratik yol budur.
6) Hız ve sıkıştırma oranı
zstd, gzip'e göre kabaca 3-5x daha hızlı açar ve benzer veya daha küçük dosya boyutu sağlar. AIOR'da DirectAdmin yedeklerini tar -I zstd ile alıyoruz ve restore süresi yarıdan az.
7) Sıkıştırma seviyesi
zstd 1-22 arasında sıkıştırma seviyesi destekler. Varsayılan 3, hızlıdır; 19+ ekstra küçültür ama CPU yoğundur. Yedek senaryolarında 9-12 dengeli bir seçimdir. Komut:
Code:
tar --zstd -cvf yedek.tar.zst dizin/
zstd -19 buyuk-dosya.bin -o cikti.zst
8) Tarball doğrulama
Açmadan içeriğini listelemek için:
Code:
tar -tf arsiv.tar.zst | head
9) Sık karşılaşılan hatalar
- "unrecognised archive": zstd yok; brew ile kurun.
- "out of memory": çok yüksek sıkıştırma seviyesiyle açılan dosya RAM'i doldurmuştur, --long=27 flag'ini deneyin.
- Apple gatekeeper engelleme: brew binary'leri imzalı; problem nadirdir.
macOS üzerinde zstd, modern yedekleme ve büyük arşiv akışlarının vazgeçilmez bir parçası hâline geldi. Bu adımlarla hızlıca açabilir ve günlük geliştirme akışınıza ekleyebilirsiniz.
Zstandard (zstd) is a modern compression algorithm that has spread quickly: noticeably faster than gzip and producing smaller files. It is now standard in Linux distributions, Docker layers and large backup archives. Arriving with a .tar.zst file on macOS, the built-in Archive Utility won't unpack it because it doesn't recognise the format. Here are the practical paths.
1) Install zstd via Homebrew
The simplest route is the zstd command-line tool through Homebrew:
Code:
brew install zstd
2) Extract from the command line
The classic two-step approach:
Code:
zstd -d archive.tar.zst -o archive.tar
tar -xf archive.tar
Code:
zstd -dc archive.tar.zst | tar -xf -
3) Tar's built-in zstd support
Modern tar (3.x and later, macOS 13+) understands zstd natively:
Code:
tar --use-compress-program=unzstd -xf archive.tar.zst
Code:
tar -xf archive.tar.zst
4) Why doesn't Archive Utility work?
Apple's Archive Utility handles zip and tar.gz but needs an external helper for zstd. Even with Homebrew zstd installed, Archive Utility doesn't detect it, so double-click won't unpack. Use the command line or a third-party GUI such as The Unarchiver.
5) The Unarchiver alternative
The Unarchiver is a free app on the Mac App Store that opens many formats, zstd included. Once installed, double-clicking a .tar.zst works. For non-technical users this is the most practical path.
6) Speed and compression ratio
zstd is roughly 3-5x faster than gzip on decompression and produces similar or smaller output. We compress DirectAdmin backups at AIOR with tar -I zstd and restore time is more than halved.
7) Compression level
zstd offers levels 1-22. Default 3 is fast; 19+ produces tighter output but burns CPU. For backups, 9-12 is a balanced sweet spot. Example:
Code:
tar --zstd -cvf backup.tar.zst dir/
zstd -19 big-file.bin -o output.zst
8) Tarball verification
List contents without extracting:
Code:
tar -tf archive.tar.zst | head
9) Common errors
- "unrecognised archive" — zstd not installed; brew install zstd.
- "out of memory" — a very high compression level may exceed RAM; try --long=27.
- Apple Gatekeeper warnings — Homebrew binaries are signed; this is rarely an issue.
On macOS, zstd has become an indispensable part of modern backup and large-archive workflows. With these steps you can open them quickly and incorporate the format into your daily development practice.