4 ms·
una (https://github.com/jwiegley/una https://github.com/jwiegley/una), a universal unarchiver which handles choosing between tar, unzip, etc. for you.
by seagreen 9y ago
una (https://github.com/jwiegley/una https://github.com/jwiegley/una), a universal unarchiver which handles choosing between tar, unzip, etc. for you.
- rahiel 9y agoYou can't install this with cargo. Una is a Haskell program; you can get it with `stack install una`.
- seagreen 9y agoWhoops, good point. In the long run I think Una's a good candidate for being installed at the systems level, because you really want to install unzip, etc. along with it. EDIT: The idea being that if you install it with your system package manager it can have unzip etc. as dependencies so that's taken care of automatically.
- raimue 9y agoYou could just use bsdtar from libarchive, which handles all the compression and archive formats automatically without additional tools. https://github.com/libarchive/libarchive/wiki/LibarchiveFormats https://github.com/libarchive/libarchive/wiki/LibarchiveForm... GNU tar is so limited, but unfortunately still the default on most systems.