Generic command line unarchiver
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


unpkg is a simple script to wrap the rough edges of command line archive programs. It always makes sure that the unarchive results in at most 1 directory, so you don't accidentally spew in your current dir, and by default deletes the original archive so, like me, you don't leave them lying around. (You can always download it again, right?)


% tar cf foo.tar a b c
% unpkg foo.tar   # you now have a directory foo/ and no foo.tar
% <download some files>
% unpkg
% unpkg foo.tgz
% unpkg foo.tar.gz
% unpkg foo.rar
% unpkg foo.7z


Run unpkg -h