{"name":"unp: A Universal Command-Line Tool for Effortless Archive Unpacking","description":"unp is a versatile command-line utility designed to simplify archive unpacking on POSIX systems. It intelligently determines the correct unpacker to use and safely extracts contents, preventing directory clutter by wrapping multiple top-level items in a new folder. This tool supports a wide array of archive formats, making it an indispensable addition to any developer's toolkit.","github":"https://github.com/mitsuhiko/unp","url":"https://osrepos.com/repo/mitsuhiko-unp","source":"osrepos.com","sourceDescription":"This repository profile is provided by osrepos.com, an open source repository discovery platform.","repositoryProfile":"https://osrepos.com/repo/mitsuhiko-unp","generatedFor":"open source discovery and AI-assisted research","markdown":"https://osrepos.com/repo/mitsuhiko-unp.md","json":"https://osrepos.com/repo/mitsuhiko-unp.json","topics":["Python","CLI","Archive","Unpack","Utility","File Management","Tool"],"keywords":["Python","CLI","Archive","Unpack","Utility","File Management","Tool"],"stars":null,"summary":"unp is a versatile command-line utility designed to simplify archive unpacking on POSIX systems. It intelligently determines the correct unpacker to use and safely extracts contents, preventing directory clutter by wrapping multiple top-level items in a new folder. This tool supports a wide array of archive formats, making it an indispensable addition to any developer's toolkit.","content":"## Introduction\n\nunp is a powerful command-line utility designed to streamline the process of unpacking various archive formats. Acting as a smart wrapper around existing shell tools on POSIX systems, it intelligently identifies the correct utility needed to extract your files. A key feature of unp is its ability to safely unpack archives, automatically creating a containing folder if an archive would otherwise scatter multiple top-level items directly into your working directory, thus keeping your workspace tidy.\n\n## Installation\n\nInstalling unp is straightforward, especially if you use `pipsi`, a pip-like installer for Python applications. If you have `pipsi` configured, you can install unp with a single command:\n\n\n$ pipsi install unp\n\n\n## Examples\n\nUsing unp is incredibly simple. To unpack an archive, just provide its filename:\n\n\n$ unp myarchive.tar.gz\n\n\nunp supports a broad range of archive types, including:\n\n*   7zip Archives (*.7z)\n*   AR Archives (*.a)\n*   Apple Disk Image (*.dmg; *.sparseimage)\n*   Bz2 Compressed Files (*.bz2)\n*   Bz2 Compressed Tarballs (*.tar.bz2)\n*   Gzip Compressed Files (*.gz)\n*   Gzip Compressed Tarballs (*.tar.gz; *.tgz)\n*   Uncompressed Tarballs (*.tar)\n*   WinRAR Archives (*.rar)\n*   Windows Cabinet Archive (*.cab)\n*   XZ Compressed Files (*.xz)\n*   XZ Compressed Tarballs (*.tar.xz)\n*   Zip Archives (*.zip; *.egg; *.whl; *.jar)\n\nNote that DMG support is specific to OS X, where it leverages `hdiutil` to copy out contents.\n\n## Why Use unp\n\nunp stands out for several reasons. Its primary advantage is simplicity, offering a unified command for unpacking diverse formats without needing to remember specific tool names or flags. The automatic directory creation for multi-item archives ensures your projects remain organized. Furthermore, its extensive support for common and less common archive types makes it a highly versatile tool, reducing the need for multiple specialized unpackers.\n\n## Links\n\nFor more detailed information, to contribute, or to report issues, please visit the official GitHub repository:\n\n[unp GitHub Repository](https://github.com/mitsuhiko/unp)","metrics":{"detailViews":17,"githubClicks":15},"dates":{"published":null,"modified":"2026-02-23T00:34:39.000Z"}}