gnu-tar
brew install gnu-tar
v1.35
GPL-3.0-or-later
GNU tar — full-featured tar archiving utility with advanced features beyond POSIX tar.
Why you might care
macOS ships with BSD tar; gnu-tar adds GNU extensions (sparse file support, incremental backups, --xattrs, better compression handling). Use it if scripts or archives depend on GNU tar flags. It's a drop-in replacement available as 'gtar' to avoid shadowing the system tar.
24.3k
30-day installs · #210
74.6k
90-day · #218
318.5k
365-day · #204
Links
- https://www.gnu.org/software/tar/
- Brew formula source: Formula/g/gnu-tar.rb
Caveats
GNU "tar" has been installed as "gtar".
If you need to use it as "tar", you can add a "gnubin" directory
to your PATH from your bashrc like:
PATH="$HOMEBREW_PREFIX/opt/gnu-tar/libexec/gnubin:$PATH"
Blurb generated by claude-haiku-4-5 on today.
Raw metadata
{
"aliases": [],
"alternatives": [
"bsdtar",
"libarchive",
"tar"
],
"build_dependencies": [],
"categories": [
"archiver",
"file-utility"
],
"caveats": "GNU \"tar\" has been installed as \"gtar\".\nIf you need to use it as \"tar\", you can add a \"gnubin\" directory\nto your PATH from your bashrc like:\n\n PATH=\"$HOMEBREW_PREFIX/opt/gnu-tar/libexec/gnubin:$PATH\"\n",
"conflicts_with": [],
"dependencies": [],
"deprecated": 0,
"deprecation_reason": null,
"desc": "GNU version of the tar archiving utility",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:38:13+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "gnu-tar",
"github_default_branch": null,
"github_last_commit_at": null,
"github_readme_excerpt": null,
"github_repo": null,
"github_stars": null,
"github_topics": [],
"homepage": "https://www.gnu.org/software/tar/",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": "Tar\n- GNU Project - Free Software Foundation",
"installs_30d": 24301,
"installs_365d": 318547,
"installs_90d": 74610,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "GPL-3.0-or-later",
"llm_generated_at": "2026-06-20T23:43:25+00:00",
"llm_model": "claude-haiku-4-5",
"name": "gnu-tar",
"oldnames": [],
"one_liner": "GNU tar \u2014 full-featured tar archiving utility with advanced features beyond POSIX tar.",
"optional_dependencies": [],
"rank_30d": 210,
"rank_365d": 204,
"rank_90d": 218,
"raw_hash": "6c1a3bea3a153e39",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/g/gnu-tar.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [],
"version_head": "HEAD",
"version_stable": "1.35",
"versioned_formulae": [],
"why_use_this": "macOS ships with BSD tar; gnu-tar adds GNU extensions (sparse file support, incremental backups, --xattrs, better compression handling). Use it if scripts or archives depend on GNU tar flags. It\u0027s a drop-in replacement available as \u0027gtar\u0027 to avoid shadowing the system tar."
}