#archive #command-line-tool #zip-archive #utility #maintained #compiling #unbox

app unpack

Command line utility that unpacks archives, a maintained version of 'unbox'

5 releases

0.2.4 Jan 3, 2021
0.2.3 Jan 2, 2021
0.2.2 Jan 2, 2021
0.2.1 Jan 2, 2021
0.2.0 Jan 2, 2021

#2243 in Command line utilities

MIT license

37KB
839 lines

unpack - a compiling fork of unbox

A work in progress command line utility to unpack various types of archives quickly.

unpack /path/to/my/archive.zip

Installation

cargo install unpack

Supported Formats

  • unix ar archives
  • microsoft cabinet
  • portable executable containing microsoft cabinet
  • zip archives
  • uncompressed tarballs
  • gzip-compressed tarballs
  • xz-compressed tarballs
  • bzip2-compressed tarballs
  • gzip-compressed files
  • xz-compressed files
  • bzip2-compressed files

Note on cabinet files: this uses the cab Rust library which currently only supports deflate cabs. This means it's unable to extract cabs which use the LZX or Quantum compression formats.

FAQ

Why do this?

No specific reason. I used to have a Python tool called unp which just shells out to system tools to unpack and I felt like I want to see if I can use the rust ecosystem to build one that comes with the unpacking code.

How fast is it?

It's not particularly fast. In fact it's about 50% slower than the system tools but for most archives I unpack that does not cause me any grief.

Dependencies

~17–29MB
~414K SLoC