The GNU tape archiver: create, list and extract tar archives
open sourceGPL-3.0-or-laterfree
GNU tar is the GNU Project's archiver: a command-line program that bundles many files into one archive and creates, lists, updates and extracts them, for storage, backup and moving files between systems. Despite the name (tape archiver), it writes to and reads from any device, file or program, including remote devices and files. Homebrew installs it as gtar, with a gnubin directory to put on PATH to call it as tar.
Ways to install
Package managers
Problems it solves
- bundle a directory into a single archive file to back it up or move it to another machine
- extract a .tar.gz or .tar.xz archive on the command line
- use GNU tar options in scripts on macOS where the system tar is BSD tar
- stream an archive to another program or a remote machine without writing a temporary file
- list what's inside a tarball without extracting it
- write backups to a tape drive or other device
Features
- create, list, update and extract tar archives
- write archives to devices, files or other programs
- access remote devices and files
- POSIX extended (pax) format headers
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what GNU tar does.
- ouch Painless compression and decompression in the terminal
- 7-Zip A file archiver with a high compression ratio
- The Unarchiver Open any archive in seconds
- MacPacker A free, open source archive manager for macOS
