The Computer Oracle

Why are tar.xz files 15x smaller when using Python's tar library compared to macOS tar?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Book End

--

Chapters
00:00 Question
02:53 Accepted answer (Score 307)
05:25 Answer 2 (Score 6)
06:55 Answer 3 (Score 4)
07:29 Thank you

--

Full question
https://superuser.com/questions/1633073/...

Question links:
[tarfile]: https://docs.python.org/3/library/tarfil...
[RaspbianĀ 10]: https://en.wikipedia.org/wiki/Raspberry_...
[image]: https://i.stack.imgur.com/fPVvP.png
[image]: https://i.stack.imgur.com/JsMVc.png

Accepted answer links:
[documentation of the Python ]: https://docs.python.org/3/library/tarfil...

Answer 2 links:
[xz]: https://linux.die.net/man/1/xz
[this answer here]: https://superuser.com/a/305141/167207
[Homebrew]: https://brew.sh
[xz]: https://formulae.brew.sh/formula/xz

Answer 3 links:
http://tukaani.org/xz/
[Tar]: https://en.wikipedia.org/wiki/Tar_%28com...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#macos #python #zsh #compression #tar

#avk47