Installing gnu-tar on Mac

Fullsour
Fullsour
Sep 3, 2017 · 2 min read
$ tar xzvf example.tar.gz
tar: 未知の拡張ヘッダキーワード `SCHILY.dev' を無視
tar: 未知の拡張ヘッダキーワード `SCHILY.ino' を無視
tar: 未知の拡張ヘッダキーワード `SCHILY.nlink' を無視
# tar on my Mac
bsdtar 2.8.3 - libarchive 2.8.3
# tar on my CentOS
tar (GNU tar) 1.26

Installing gnu-tar on Mac

brew install gnu-tar
gtar --version
tar (GNU tar) 1.29
# on Mac
$ gtar czvf example.tar.gz example
example/
example/テスト.txt
# send it to CentOS
# login to CentOS
$ tar xzvf example.tar.gz
example/
example/テスト.txt

Fullsour

Written by

Fullsour

Senior Front End Architect / Freelance, self-employed

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade