Painless compression and decompression in the terminal
open sourceMITfree
ouch (Obvious Unified Compression Helper) is a command-line tool written in Rust for compressing, decompressing and listing archives with one set of commands. It works out the format from the file extension, so ouch decompress a.zip b.tar.gz needs no flags, and it can chain formats (.tar.gz.xz.zst) and read from standard input. It supports tar, zip, 7z, gzip, Snappy, Zstandard, xz, lzma, lzip, bzip2, bzip3, LZ4 and Brotli in both directions, and RAR for decompression and listing only.
Ways to install
Package managers
Problems it solves
- stop looking up tar flags every time I need to extract an archive
- extract zip, tar.gz and 7z files in the terminal with the same command
- compress files into any common archive format from the command line
Features
- One command each to compress, decompress and list archives
- Detects formats from file extensions, including chained ones like .tar.gz.zst
- tar, zip, 7z, gz, zst, xz, lzma, lz, bz2, bz3, lz4, br and Snappy
- Parallel compression for gzip, Snappy and Zstandard
- Decompression from standard input
- Shell completions, man pages and an accessibility mode
Limitations
- RAR archives can only be decompressed and listed, not created, because of RAR's licence2
Alternatives
The same job
These do what ouch does.
- 7-Zip A file archiver with a high compression ratio
- GNU tar The GNU tape archiver: create, list and extract tar archives
- The Unarchiver Open any archive in seconds
- Unpackerr Extracts downloads for Radarr, Sonarr, Lidarr, Readarr, and/or a Watch folder
- NanaZip The 7-Zip derivative intended for the modern Windows experience
- MacPacker A free, open source archive manager for macOS
