Skip to content

A very basic tar/zip extraction program

License

Notifications You must be signed in to change notification settings

cargo-prebuilt/qstract

Repository files navigation

qstract

Rust Build and Test Rust Checks rustc-msrv

A very basic tar/zip extraction program.

Installation

  • You can download the latest prebuilt binaries of qstract here.
  • Install script (unix platforms):
bash -c "$(curl -fsSL --tlsv1.2 https://raw.githubusercontent.com/cargo-prebuilt/qstract/main/scripts/install-qstract.sh)"

Args

  • -C for directory to extract to.
  • -z for gzip.
  • --zip for zip. (none, deflate, deflate64)
  • --sha256 for sha256 hash.
  • --sha512 for sha512 hash.
  • --sha3_256 for sha3_256 hash.
  • --sha3_512 for sha3_512 hash.

First positional arg is the file to extract/hash.

Examples

  • qstract -z -C /tmp /tmp/tar.tar.gz : Extract gzip file tar.tar.gz to /tmp
  • qstract tar.tar : Extract file tar.tar to current working directory