1 unstable release

0.0.1 Jun 23, 2023

#11 in #unpacking

MIT license

8KB
87 lines

unseal

CLI tool for unpacking archives (of the most common types).

It's focused on simplicity such as:

  • Auto-detection of archive type.
  • Portable binaries for various platforms.
  • No external dependencies (other binaries or any dynamic libraries).

Installation

Pre-built binary

Download the latest binary from the releases page.

cargo

cargo install unseal

Usage

unseal [OPTIONS] <INPUT>

Arguments:
  <INPUT>  Path to the archive to unseal

Options:
  -o, --output <OUTPUT>
          Directory to unpack the archive into [default: .]
  -s, --strip-components <STRIP_COMPONENTS>
          Strip the specified number of leading components from the archive [default: 0]
  -v, --verbose
          Verbose output
  -h, --help
          Print help
  -V, --version
          Print version

Examples

# Unpack archive.tar.gz into the current directory.
unseal archive.tar.gz
# Unpack archive.tar.xz into the directory /tmp/foo.
unseal -o /tmp/foo archive.tar.xz
# Unpack archive.tar.bz2 into the directory /tmp/foo, stripping the first component.
unseal -o /tmp/foo -s 1 archive.tar.gz

Dependencies

~6–15MB
~203K SLoC