| 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" |
| 2 |
"http://www.w3.org/TR/html4/strict.dtd"> |
| 3 |
|
| 4 |
<html><head><title>dtrx: Intelligent archive extraction</title> |
| 5 |
<link rel="stylesheet" href="common.css"> |
| 6 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| 7 |
</head> |
| 8 |
<body> |
| 9 |
<h1>dtrx: Intelligent archive extraction</h1> |
| 10 |
|
| 11 |
<h2>Introduction</h2> |
| 12 |
|
| 13 |
<p><span class="pname">dtrx</span> stands for “Do The Right |
| 14 |
Extraction.” It's a tool for Unix-like systems that takes all the |
| 15 |
hassle out of extracting archives. Here's an example of how you use |
| 16 |
it:</p> |
| 17 |
|
| 18 |
<pre>$ dtrx linux-3.0.1.tar.bz2</pre> |
| 19 |
|
| 20 |
<p>That's basically the same thing as:</p> |
| 21 |
|
| 22 |
<pre>$ tar -jxf linux-3.0.1.tar.bz2</pre> |
| 23 |
|
| 24 |
<p>But there's more to it than that. You know those really annoying files |
| 25 |
that don't put everything in a dedicated directory, and have the |
| 26 |
permissions all wrong?</p> |
| 27 |
|
| 28 |
<pre>$ tar -zvxf random-tarball.tar.gz |
| 29 |
foo |
| 30 |
bar |
| 31 |
data/ |
| 32 |
data/text |
| 33 |
$ cd data/ |
| 34 |
cd: permission denied: data</pre> |
| 35 |
|
| 36 |
<p><span class="pname">dtrx</span> takes care of all those problems for |
| 37 |
you, too:</p> |
| 38 |
|
| 39 |
<pre>$ dtrx random-tarball.tar.gz |
| 40 |
$ cd random-tarball/data |
| 41 |
$ cat text |
| 42 |
This all works properly.</pre> |
| 43 |
|
| 44 |
<p><span class="pname">dtrx</span> is simple and powerful. Just use the |
| 45 |
same command for all your archive files, and they'll never frustrate you |
| 46 |
again.</p> |
| 47 |
|
| 48 |
<h2>Features</h2> |
| 49 |
|
| 50 |
<ul> |
| 51 |
|
| 52 |
<li><strong>Handles many archive types</strong>: You only need to remember |
| 53 |
one simple command to extract |
| 54 |
|
| 55 |
<span class="pname">tar</span>, |
| 56 |
<span class="pname">zip</span>, |
| 57 |
<span class="pname">cpio</span>, |
| 58 |
<span class="pname">deb</span>, |
| 59 |
<span class="pname">rpm</span>, |
| 60 |
<span class="pname">gem</span>, |
| 61 |
<span class="pname">7z</span>, |
| 62 |
<span class="pname">cab</span>, |
| 63 |
<span class="pname">lzh</span>, |
| 64 |
<span class="pname">rar</span>, |
| 65 |
<span class="pname">arj</span>, |
| 66 |
<span class="pname">gz</span>, |
| 67 |
<span class="pname">bz2</span>, |
| 68 |
<span class="pname">lzma</span>, |
| 69 |
<span class="pname">xz</span>, |
| 70 |
<span class="pname">lrzip</span>, |
| 71 |
<span class="pname">lzip</span>, |
| 72 |
and many kinds of |
| 73 |
<span class="pname">exe</span> files, including Microsoft Cabinet archives, |
| 74 |
InstallShield archives, and self-extracting <span class="pname">zip</span> |
| 75 |
files. |
| 76 |
|
| 77 |
If they have any extra compression, like <span class="pname">tar.bz2</span> |
| 78 |
files, <span class="pname">dtrx</span> will take care of that for you, |
| 79 |
too.</li> |
| 80 |
|
| 81 |
<li><strong>Keeps everything organized</strong>: <span |
| 82 |
class="pname">dtrx</span> will make sure that archives are extracted into |
| 83 |
their own dedicated directories.</li> |
| 84 |
|
| 85 |
<li><strong>Sane permissions</strong>: <span class="pname">dtrx</span> makes |
| 86 |
sure you can read and write all the files you just extracted, while leaving |
| 87 |
the rest of the permissions intact.</li> |
| 88 |
|
| 89 |
<li><strong>Recursive extraction</strong>: <span class="pname">dtrx</span> can |
| 90 |
find archives inside the archive and extract those too.</li> |
| 91 |
|
| 92 |
</ul> |
| 93 |
|
| 94 |
<h2>Download</h2> |
| 95 |
|
| 96 |
<p><a href="dtrx-7.1.tar.gz">Download <span class="pname">dtrx</span> |
| 97 |
7.1</a>. The SHA1 checksum for this file |
| 98 |
is <tt>05cfe705a04a8b84571b0a5647cd2648720791a4</tt>. Improvements in this |
| 99 |
release include:</p> |
| 100 |
|
| 101 |
<ul> |
| 102 |
|
| 103 |
<li>Support for LZH archives.</li> |
| 104 |
<li>Minor bug fixes in handling recursive extraction and empty |
| 105 |
archives.</li> |
| 106 |
|
| 107 |
</ul> |
| 108 |
|
| 109 |
<p>If you would like to try the latest development version—or maybe do some |
| 110 |
work on it yourself—you can check out the |
| 111 |
project's <a href="http://git-scm.com/">Git</a> |
| 112 |
repository. A |
| 113 |
<a href="http://gitorious.org/dtrx">web repository</a> is |
| 114 |
available, or you can just run:</p> |
| 115 |
|
| 116 |
<pre>$ git clone git://gitorious.org/dtrx/dtrx.git</pre> |
| 117 |
|
| 118 |
<h2>Requirements</h2> |
| 119 |
|
| 120 |
<p>If you have Python 2.4 or greater, this should work out of the box. If |
| 121 |
you're stuck on Python 2.3, you can use this if you install |
| 122 |
the <a href="http://www.lysator.liu.se/~astrand/popen5/">subprocess |
| 123 |
module</a>. You'll need the usual tools for the archive types you want to |
| 124 |
extract: for example, if you're extracting <span class="pname">zip</span> |
| 125 |
files, you'll need <span class="pname">zipinfo</span> |
| 126 |
and <span class="pname">unzip</span>. See the <tt>INSTALL</tt> file included |
| 127 |
with <span class="pname">dtrx</span> for a complete list of necessary |
| 128 |
utilities.</p> |
| 129 |
|
| 130 |
<h2>Installation</h2> |
| 131 |
|
| 132 |
<p>You can just put <span class="pname">scripts/dtrx</span> wherever is |
| 133 |
convenient for you, but if you want to install the program system-wide, you |
| 134 |
can also run the following command as root or equivalent:</p> |
| 135 |
|
| 136 |
<pre>python setup.py install --prefix=/usr/local</pre> |
| 137 |
|
| 138 |
<p>See the included <tt>INSTALL</tt> file for more information.</p> |
| 139 |
|
| 140 |
</body> |
| 141 |
</html> |