dtrx

All-in-one archive extraction tool (fork)

hg clone https://code.matthewwild.co.uk/dtrx

tip: c4495fc7d00d (2010-01-13)

====
dtrx
====

----------------------------------
cleanly extract many archive types
----------------------------------

:Author: Brett Smith <brettcsmith@brettcsmith.org>
:Date:   2009-07-04
:Copyright:

  dtrx 6.6 is copyright © 2006-2009 Brett Smith and others.  Feel free to
  send comments, bug reports, patches, and so on.  You can find the latest
  version of dtrx on its home page at
  <http://www.brettcsmith.org/2007/dtrx/>.
  
  dtrx is free software; you can redistribute it and/or modify it under the
  terms of the GNU General Public License as published by the Free Software
  Foundation; either version 3 of the License, or (at your option) any
  later version.
  
  This program is distributed in the hope that it will be useful, but
  WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
  Public License for more details.
  
  You should have received a copy of the GNU General Public License along
  with this program; if not, see <http://www.gnu.org/licenses/>.

:Version: 6.6
:Manual section: 1

SYNOPSIS
========

dtrx [OPTIONS] ARCHIVE [ARCHIVE ...]

DESCRIPTION
===========

dtrx extracts archives in a number of different formats; it currently
supports tar, zip (including self-extracting .exe files), cpio, rpm, deb,
gem, 7z, cab, rar, and InstallShield files.  It can also decompress files
compressed with gzip, bzip2, lzma, or compress.

In addition to providing one command to handle many different archive
types, dtrx also aids the user by extracting contents consistently.  By
default, everything will be written to a dedicated directory that's named
after the archive.  dtrx will also change the permissions to ensure that the
owner can read and write all those files.

To run dtrx, simply call it with the archive(s) you wish to extract as
arguments.  For example::

   $ dtrx coreutils-5.*.tar.gz

OPTIONS
=======

dtrx supports a number of options to mandate specific behavior:

-r, --recursive
   With this option, dtrx will search inside the archives you specify to see
   if any of the contents are themselves archives, and extract those as
   well.

--one, --one-entry
   Normally, if an archive only contains one file or directory with a name
   that doesn't match the archive's, dtrx will ask you how to handle it.
   With this option, you can specify ahead of time what should happen.
   Possible values are:

   inside
      Extract the file/directory inside another directory named after the
      archive.  This is the default.

   rename
      Extract the file/directory in the current directory, and then rename
      it to match the name of the archive.

   here
      Extract the file/directory in the current directory.

-o, --overwrite
   Normally, dtrx will avoid extracting into a directory that already exists,
   and instead try to find an alternative name to use.  If this option is
   listed, dtrx will use the default directory name no matter what.

-f, --flat
   Extract all archive contents into the current directory, instead of
   their own dedicated directory.  This is handy if you have multiple
   archive files which all need to be extracted into the same directory
   structure.  Note that existing files may be overwritten with this
   option.

-n, --noninteractive
   dtrx will normally ask the user how to handle certain corner cases, such
   as how to handle an archive that only contains one file.  This option
   suppresses those questions; dtrx will instead use sane, conservative
   defaults.

-l, -t, --list, --table
   Don't extract the archives; just list their contents on standard output.

-m, --metadata
   Extract the metadata from .deb and .gem archives, instead of their normal
   contents.

-q, --quiet
   Suppress warning messages.  Listing this option twice will cause dtrx to
   be silent.

-v, --verbose
   Show the files that are being extracted.  Listing this option twice will
   cause dtrx to print debugging information.

--help
   Display basic help.

--version
   Display dtrx's version, copyright, and license information.

Files

COPYING34.3 KiB
INSTALL2.0 KiB
MANIFEST.in90 B
NEWS6.5 KiB
README4.0 KiB
TODO551 B
contributions.mbox3.3 KiB
scripts/dtrx47.3 KiB
setup.py1.7 KiB
tests/compare.py8.8 KiB
tests/test-1.23.7z183 Bbinary
tests/test-1.23.cpio512 Bbinary
tests/test-1.23.gem10.0 KiBbinary
tests/test-1.23.tar10.0 KiBbinary
tests/test-1.23.tar.bz2197 Bbinary
tests/test-1.23.tar.gz220 Bbinary
tests/test-1.23.tar.lzma193 Bbinary
tests/test-1.23.zip380 Bbinary
tests/test-1.23_all.deb604 Bbinary
tests/test-2_all.deb590 Bbinary
tests/test-deep-recursion.tar10.0 KiBbinary
tests/test-dot-first-bomb.tar.gz145 Bbinary
tests/test-dot-first-onedir.tar.gz151 Bbinary
tests/test-empty.tar.bz246 Bbinary
tests/test-one-archive.tar.gz175 Bbinary
tests/test-onedir.tar.bz2160 Bbinary
tests/test-onedir.tar.gz158 Bbinary
tests/test-onefile.tar.gz125 Bbinary
tests/test-recursive-badperms.tar.bz2206 Bbinary
tests/test-tar-with-node.tar.gz166 Bbinary
tests/test-text.bz240 Bbinary
tests/test-text.gz23 Bbinary
tests/test-text.xz60 Bbinary
tests/tests.yml14.4 KiB
web/common.css124 B
web/index.html4.2 KiB