$ unp_ unp is a command line tool that can unpack archives easily. It mainly acts as a wrapper around other shell tools that you can find on various POSIX systems. It figures out how to invoke an unpacker to achieve the desired result. In addition to that it will safely unpack files when an archive contains more than one top level item. In those cases it will wrap the resulting file in a folder so that your working directory does not get messed up. All you have to do: $ unp myarchive.tar.gz To install you can use pipsi: $ pipsi install unp Supports the following archives: - 7zip Archives (*.7z) - AR Archives (*.a) - Apple Disk Image (*.dmg; *.sparseimage) - Bz2 Compressed Files (*.bz2) - Bz2 Compressed Tarballs (*.tar.bz2) - Gzip Compressed Files (*.gz) - Gzip Compressed Tarballs (*.tar.gz; *.tgz) - Uncompressed Tarballs (*.tar) - WinRAR Archives (*.rar) - Windows Cabinet Archive (*.cab) - XZ Compressed Files (*.xz) - XZ Compressed Tarballs (*.tar.xz) - Zip Archives (*.zip; *.egg; *.whl; *.jar) DMG is only supported on OS X where it invokes the hdiutil and copies out the contents.
Unpacks things.
Overview
Comments
-
Unmaintained?
@mitsuhiko is this tool still maintained?
It is a great usability benefit for command-line users, so it would be sad to see it die slowly. I am mainly wondering, as I was thinking about packaging it for NixOS.
-
unp in diablo
Hello. Trying to use unp on my old Nokia n810. unp from debian stretch repository.
`[3|user@/]perl -v This is perl, v5.8.3 built for arm-linux-gnueabi-thread-multi
Copyright 1987-2003, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on this system using
man perl' or
perldoc perl'. If you have access to the Internet, point your browser at http://www.perl.com/, the Perl Home Page.[3|user@/]unp Can't locate File/Basename.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.3 /usr/local/share/perl/5.8.3 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/bin/unp line 28. BEGIN failed--compilation aborted at /usr/bin/unp line 28. ` How to fix? Thanks.
-
Add --force-basename option
When extracting multiple similar archives with only one top-level element, user usually wants to have them in a destination directory named after archive's name.
Currently the first archive is extracted to a directory named after the single top-level element while other archives are extracted to directories named after archive's basename.
The
--force-basename
option is forcing the latter behaviour for every archive.For example, let's say we have two archives, with only one top-level directory in them (called
var
):$ ls BundleLogs*zip BundleLogs-1495008842230.zip BundleLogs-1495008843374.zip
When trying to unpack them at once:
$ unp --output /tmp/logs BundleLogs*zip
The default behaviour leaves us with:
$ ls /tmp/logs BundleLogs-1495008843374 var
Using
--force-basename
option:$ unp --force-basename --output /tmp/logs_basename BundleLogs*zip
We get the following result:
$ ls /tmp/logs_basename BundleLogs-1495008842230 BundleLogs-1495008843374
-
what is the 'click' modules
I am reading your codes and i an confused about the modules click I use pip search click and
import click
, but the python tell meModuleNotFoundError: No module named 'click'
-
Is there a flag to tell unp to overwrite
Is there a flag to tell unp to overwrite. Example, if we are uncomrpessing abc.zip(unp abc) it will result in a folder abc under current working directory. If we execute same command again, it will uncompress to abc1 or something like that, without overwriting abc. Is there a flag to force overwrite ?
Owner
Armin Ronacher
A curated list of awesome things related to Textual
Awesome Textual | A curated list of awesome things related to Textual. Textual is a TUI (Text User Interface) framework for Python inspired by modern
A modular Karton Framework service that unpacks common packers like UPX and others using the Qiling Framework.
Unpacker Karton Service A modular Karton Framework service that unpacks common packers like UPX and others using the Qiling Framework. This project is
Proxy server that records responses for UI testing (and other things)
Welcome to playback-proxy ?? A proxy tool that records communication (requests, websockets) between client and server. This recording can later be use
Helps working with singletons - things like global settings that you want to edit from the admin site.
Django Solo +---------------------------+ | | | | | \ | Django Solo helps
Looks at Python code to search for things which look "dodgy" such as passwords or diffs
dodgy Dodgy is a very basic tool to run against your codebase to search for "dodgy" looking values. It is a series of simple regular expressions desig
Nuitka is a Python compiler written in Python. It's fully compatible with Python 2.6, 2.7, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, and 3.9. You feed it your Python app, it does a lot of clever things, and spits out an executable or extension module.
Nuitka User Manual Contents Overview Usage Requirements Command Line Installation License Tutorial Setup and build on Windows Setup Install Python Ins
All of the ad-hoc things you're doing to manage incidents today, done for you, and much more!
About What's Dispatch? Put simply, Dispatch is: All of the ad-hoc things you’re doing to manage incidents today, done for you, and a bunch of other th
get things from one computer to another, safely
Magic Wormhole Get things from one computer to another, safely. This package provides a library and a command-line tool named wormhole, which makes it
A curated list of awesome things related to Pydantic! 🌪️
Awesome Pydantic A curated list of awesome things related to Pydantic. These packages have not been vetted or approved by the pydantic team. Feel free
a harbinger of events or things.
Herald: Intrusion Detection System using IR and ML Herald - noun; a harbinger of events or things. Overview Herald is an intrusion detection system us
Lazy, a tool for running things in idle time
Lazy, a tool for running things in idle time Mostly used to stop CUDA ML model training from making my desktop unusable. Simply monitors keyboard/mous
This is a Python script for Github Bot which uses Selenium to Automate things.
github-follow-unfollow-bot This is a Python script for Github Bot which uses Selenium to Automate things. Pre-requisites :- Python A Github Account Re
A FastAPI Framework for things like Database, Redis, Logging, JWT Authentication and Rate Limits
A FastAPI Framework for things like Database, Redis, Logging, JWT Authentication and Rate Limits Install You can install this Library with: pip instal
A command line interface to buy things in stregsystemet
Stregsystemet-CLI This repository is the Stregsystemet CLI, to buy things in Stregsystemet, at AAU. Use of this cli-tool is at your own risk and there
A repository dedicated to IoT(internet of things ) and python scripts
?? Introduction Week of Learning is a weekly program in which you will get all the necessary knowledge about Circuit-Building, Arduino and Micro-Contr
Creates folders into a directory to categorize files in that directory by file extensions and move all things from sub-directories to current directory.
Categorize and Uncategorize Your Folders Table of Content TL;DR just take me to how to install. What are Extension Categorizer and Folder Dumper Insta
Multipurpose Growtopia Server tools, can be used for newbie to learn things.
Multipurpose Growtopia Server tools, can be used for newbie to learn things.
A python software that can help blind people find things like laptops, phones, etc the same way a guide dog guides a blind person in finding his way.
GuidEye A python software that can help blind people find things like laptops, phones, etc the same way a guide dog guides a blind person in finding h
An Open Source ALL-In-One Telegram RoBot, that can do lot of things.
An Open Source ALL-In-One Telegram RoBot, that can do lot of things.
An Open Source ALL-In-One Telegram RoBot, that can do lot of things.
URL Uploader Bot An Open Source ALL-In-One Telegram RoBot, that can do lot of things. My Features Installation The Easy Way You can also tap the Deplo