Scroll to navigation

() ()
file_unpack V0.70 Usage: 
file_unpack [options] input.tar.gz ...
file_unpack [options] input/ ...
file_unpack -l
file_unpack -p
Valid options are:

-v Be more verbose. Default: 1.
-q Be quiet, not verbose.
-A --archive_dirs Use exact archive names as subdirectories, modified by appending '._*' to avoid collisions. Default: use truncated and/or modified archive names. E.g. example.zip is per default unpacked into 'example/'. With -A, it is unpacked into 'example.zip._/'. This does not apply for single file archives. They are always unpacked without a directory.
-C dir
-D --destdir dir
Directory, where to place the output file or directory. A subdirectory is created, if there are more than one files to unpack. Default: current dir.
-E --exclude glob.pat
Specify files and directories that are not unpacked. This option can be specified multiple times.
-F --fullpath-log
Always use full path names in logfile. Default: unpacked path names are written relative to destdir.
--exclude-vcs --no-exclude-vcs
--include-vcs --no-include-vcs --vcs --no-vcs
Group switch for directory glob patterns of most version control systems. This affects at least SCCS, RCS, CVS, .svn, .git, .hg, .osc . The logfile has a {skipped}{exclude} counter.
Default: exclude-vcs=1 .
-1 --one-shot
Make unpacker non-recursive. Perform one level of unpacking only. This is the default unless the name of the unpacker contains the substring 'deep'.
--deep
--recursive
Make unpacker recursive. Perform all possible levels of unpacking. This is the default if the name of the unpacker contains the substring 'deep'.
-h --help -?
Print this online help.

-L --logfile file.log
Specify a logfile, where freshly unpacked files are reported. When a logfile is specified, its format is JSON; default is STDOUT with format PLAIN.

-l --list-helpers
Overview of mime-type patterns and their helper commands.
-p --print-helpers
List all builtin mime-helpers and all external mime-helpers as a nested perl datastructure.
-P --param KEY=VALUE
Place additional params into the log file.
--maxfilesize size
Truncate an unpacked file, if it gets larger than the specified size. Size can be specified as bytes (plain integer), kilo-, mega-, giga-, or tera-bytes (suffix K,M,G,T). Default: 2.6G.
-m --mimetype
Do not unpack, just report mimetype of the archive. Output format is similar to '/usr/bin/file -i', unless -q or -v are given. With -v, the unpacker command is also printed.
-R --world-readable
Make the unpacked tree world readable. Default: user readable.
-n --no-op
Do not unpack. Print the first unpack command only.
-u --use-mime-helper-dir dir
Include an additonal directory of mime helpers. Useable multiple times. Later additions take precedence.
-f --follow-file-symlinks
Follow (and unpack) symlinks that point to files (or archives). Used once, we follow only symlinks that are present before unpacking starts. Used twice, we also follow symlinks that were unpacked from an archive. Symlinks to directories or other (dangling) symlinks are always ignored. The logfile has a {skipped}{symlink} counter.
Default: skip all symlinks.