2 <a href="https://crates.io/crates/ouch">
3 <img src="https://img.shields.io/crates/v/ouch?color=6090FF&style=flat-square" alt="Crates.io link">
5 <a href="https://github.com/ouch/ouch-org/blob/master/LICENSE">
6 <img src="https://img.shields.io/crates/l/ouch?color=6090FF&style=flat-square" alt="License">
12 `ouch` stands for **Obvious Unified Compression Helper**.
14 It's a CLI tool for compressing and decompressing for various formats.
16 - [Features](#features)
18 - [Installation](#installation)
19 - [Supported Formats](#supported-formats)
20 - [Benchmarks](#benchmarks)
21 - [Contributing](#contributing)
27 3. Great error message feedback.
28 4. No runtime dependencies required (for _Linux x86_64_).
29 5. Accessibility mode ([see more](https://github.com/ouch-org/ouch/wiki/Accessibility)).
30 6. Shell completions and man pages.
34 Ouch has three main subcommands:
36 - `ouch decompress` (alias `d`)
37 - `ouch compress` (alias `c`)
38 - `ouch list` (alias `l`)
42 Use the `decompress` subcommand, `ouch` will detect the extensions automatically.
47 # Decompress multiple files
48 ouch decompress a.zip b.tar.gz c.tar
51 The `-d/--dir` flag can be used to redirect decompression results to another directory.
54 # Decompress 'summer_vacation.zip' inside of new folder 'pictures'
55 ouch decompress summer_vacation.zip --dir pictures
60 Pass input files to the `compress` subcommand, add the **output file** at the end.
63 # Compress two files into `archive.zip`
64 ouch compress one.txt two.txt archive.zip
66 # Compress file.txt using .lz4 and .zst
67 ouch compress file.txt file.txt.lz4.zst
70 `ouch` detects the extensions of the **output file** to decide what formats to use.
77 # Example with tree formatting
78 ouch list source-code.zip --tree
107 | Format | `.tar` | `.zip` | `.gz` | `.xz`, `.lzma` | `.bz`, `.bz2` | `.lz4` | `.sz` | `.zst` |
108 |:---------:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
109 | Supported | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
111 And the aliases: `tgz`, `tbz`, `tbz2`, `tlz4`, `txz`, `tlzma`, `tsz`, `tzst`.
113 Formats can be chained:
117 - `.tar.gz.gz.gz.gz.zst.xz.bz.lz4`
121 [![Packaging status](https://repology.org/badge/vertical-allrepos/ouch.svg)](https://repology.org/project/ouch/versions)
129 ## On Windows via Scoop
141 ## Download the latest release bundle
143 Check the [releases page](https://github.com/ouch-org/ouch/releases).
145 ## Compiling from source code
147 Check the [wiki guide on compiling](https://github.com/ouch-org/ouch/wiki/Compiling-and-installing-from-source-code).
151 If you installed `ouch` using the download script, you will need no dependencies (static MUSL binary).
153 Otherwise, you'll need these libraries installed on your system:
155 * [liblzma](https://www.7-zip.org/sdk.html)
156 * [libbz2](https://www.sourceware.org/bzip2/)
157 * [libz](https://www.zlib.net/)
159 These are available on all mainstream _Linux_ distributions and on _macOS_.
163 Benchmark results are available [here](benchmarks/results.md).
164 Performance of compressing and decompressing
165 [Rust](https://github.com/rust-lang/rust) source code are measured and compared with
166 [Hyperfine](https://github.com/sharkdp/hyperfine).
167 The values presented are the average (wall clock) elapsed time.
169 Note: `ouch` focuses heavily on usage ergonomics and nice error messages, but
170 we plan on doing some optimization in the future.
176 - [`unzip`][infozip] _6.00_
177 - [`zip`][infozip] _3.0_
181 `ouch` is made out of voluntary work, contributors are very welcome! No contribution is too small and all contributions are valued.
183 - Open an [issue](https://github.com/ouch-org/ouch/issues).
184 - Package it for your favorite distribution or package manager.
185 - Open a pull request.
186 - Share it with a friend!
188 [`tar`]: https://www.gnu.org/software/tar/
189 [infozip]: http://www.info-zip.org/