Sun, 30 Aug 2009 11:55:49 -0400
release dtrx 6.6
63 | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Strict//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"> | |
89 | 6 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
63 | 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-2.6.10.tar.bz2</pre> | |
19 | ||
20 | <p>That's basically the same thing as:</p> | |
21 | ||
22 | <pre>$ tar -jxf linux-2.6.10.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>, | |
93
6c20788653a8
Prepare for a 6.3 release
Brett Smith <brettcsmith@brettcsmith.org>
parents:
89
diff
changeset
|
63 | <span class="pname">rar</span>, |
63 | 64 | <span class="pname">gz</span>, |
75
856de7e8f494
Update for 6.1, plus some tweaks here and there.
Brett Smith <brettcsmith@brettcsmith.org>
parents:
64
diff
changeset
|
65 | <span class="pname">bz2</span>, |
124 | 66 | <span class="pname">lzma</span>, |
67 | <span class="pname">xz</span>, and many kinds of | |
75
856de7e8f494
Update for 6.1, plus some tweaks here and there.
Brett Smith <brettcsmith@brettcsmith.org>
parents:
64
diff
changeset
|
68 | <span class="pname">exe</span> files, including Microsoft Cabinet archives, |
856de7e8f494
Update for 6.1, plus some tweaks here and there.
Brett Smith <brettcsmith@brettcsmith.org>
parents:
64
diff
changeset
|
69 | InstallShield archives, and self-extracting <span class="pname">zip</span> |
856de7e8f494
Update for 6.1, plus some tweaks here and there.
Brett Smith <brettcsmith@brettcsmith.org>
parents:
64
diff
changeset
|
70 | files. |
63 | 71 | |
93
6c20788653a8
Prepare for a 6.3 release
Brett Smith <brettcsmith@brettcsmith.org>
parents:
89
diff
changeset
|
72 | If they have any extra compression, like <span class="pname">tar.bz2</span> |
6c20788653a8
Prepare for a 6.3 release
Brett Smith <brettcsmith@brettcsmith.org>
parents:
89
diff
changeset
|
73 | files, <span class="pname">dtrx</span> will take care of that for you, |
6c20788653a8
Prepare for a 6.3 release
Brett Smith <brettcsmith@brettcsmith.org>
parents:
89
diff
changeset
|
74 | too.</li> |
63 | 75 | |
76 | <li><strong>Keeps everything organized</strong>: <span | |
77 | class="pname">dtrx</span> will make sure that archives are extracted into | |
78 | their own dedicated directories.</li> | |
79 | ||
80 | <li><strong>Sane permissions</strong>: <span class="pname">dtrx</span> makes | |
81 | sure you can read and write all the files you just extracted, while leaving | |
82 | the rest of the permissions intact.</li> | |
83 | ||
84 | <li><strong>Recursive extraction</strong>: <span class="pname">dtrx</span> can | |
85 | find archives inside the archive and extract those too.</li> | |
86 | ||
87 | </ul> | |
88 | ||
89 | <h2>Download</h2> | |
90 | ||
124 | 91 | <p><a href="dtrx-6.6.tar.gz">Download <span class="pname">dtrx</span> |
92 | 6.6</a>. The SHA1 checksum for this file | |
93 | is <tt>18b689739596007a2bb43a4ab94d341b68a05c9c</tt>. Improvements in this | |
63 | 94 | release include:</p> |
95 | ||
96 | <ul> | |
97 | ||
124 | 98 | <li>Support for xz compression.</li> |
63 | 99 | |
100 | </ul> | |
101 | ||
64
d7b46cae939b
Add notes about the hg repo.
Brett Smith <brett@brettcsmith.org>
parents:
63
diff
changeset
|
102 | <p>If you would like to try the latest development version—or maybe do some |
75
856de7e8f494
Update for 6.1, plus some tweaks here and there.
Brett Smith <brettcsmith@brettcsmith.org>
parents:
64
diff
changeset
|
103 | work on it yourself—you can check out the |
856de7e8f494
Update for 6.1, plus some tweaks here and there.
Brett Smith <brettcsmith@brettcsmith.org>
parents:
64
diff
changeset
|
104 | project's <a href="http://www.selenic.com/mercurial/wiki/">Mercurial</a> |
856de7e8f494
Update for 6.1, plus some tweaks here and there.
Brett Smith <brettcsmith@brettcsmith.org>
parents:
64
diff
changeset
|
105 | repository. A |
64
d7b46cae939b
Add notes about the hg repo.
Brett Smith <brett@brettcsmith.org>
parents:
63
diff
changeset
|
106 | <a href="http://www.brettcsmith.org/2007/dtrx/dtrx/">web repository</a> is |
d7b46cae939b
Add notes about the hg repo.
Brett Smith <brett@brettcsmith.org>
parents:
63
diff
changeset
|
107 | available, or you can just run:</p> |
d7b46cae939b
Add notes about the hg repo.
Brett Smith <brett@brettcsmith.org>
parents:
63
diff
changeset
|
108 | |
d7b46cae939b
Add notes about the hg repo.
Brett Smith <brett@brettcsmith.org>
parents:
63
diff
changeset
|
109 | <pre>$ hg clone http://www.brettcsmith.org/2007/dtrx/dtrx</pre> |
d7b46cae939b
Add notes about the hg repo.
Brett Smith <brett@brettcsmith.org>
parents:
63
diff
changeset
|
110 | |
63 | 111 | <h2>Requirements</h2> |
112 | ||
113 | <p>If you have Python 2.4 or greater, this should work out of the box. If | |
75
856de7e8f494
Update for 6.1, plus some tweaks here and there.
Brett Smith <brettcsmith@brettcsmith.org>
parents:
64
diff
changeset
|
114 | you're stuck on Python 2.3, you can use this if you install |
856de7e8f494
Update for 6.1, plus some tweaks here and there.
Brett Smith <brettcsmith@brettcsmith.org>
parents:
64
diff
changeset
|
115 | the <a href="http://www.lysator.liu.se/~astrand/popen5/">subprocess |
856de7e8f494
Update for 6.1, plus some tweaks here and there.
Brett Smith <brettcsmith@brettcsmith.org>
parents:
64
diff
changeset
|
116 | module</a>. You'll need the usual tools for the archive types you want to |
856de7e8f494
Update for 6.1, plus some tweaks here and there.
Brett Smith <brettcsmith@brettcsmith.org>
parents:
64
diff
changeset
|
117 | extract: for example, if you're extracting <span class="pname">zip</span> |
856de7e8f494
Update for 6.1, plus some tweaks here and there.
Brett Smith <brettcsmith@brettcsmith.org>
parents:
64
diff
changeset
|
118 | files, you'll need <span class="pname">zipinfo</span> |
856de7e8f494
Update for 6.1, plus some tweaks here and there.
Brett Smith <brettcsmith@brettcsmith.org>
parents:
64
diff
changeset
|
119 | and <span class="pname">unzip</span>. See the INSTALL file included |
856de7e8f494
Update for 6.1, plus some tweaks here and there.
Brett Smith <brettcsmith@brettcsmith.org>
parents:
64
diff
changeset
|
120 | with <span class="pname">dtrx</span> for a complete list of necessary |
856de7e8f494
Update for 6.1, plus some tweaks here and there.
Brett Smith <brettcsmith@brettcsmith.org>
parents:
64
diff
changeset
|
121 | utilities.</p> |
63 | 122 | |
123 | <h2>Installation</h2> | |
124 | ||
125 | <p>You can just put <span class="pname">scripts/dtrx</span> wherever is | |
126 | convenient for you, but if you want to install the program system-wide, you | |
127 | can also run the following command as root or equivalent:</p> | |
128 | ||
121 | 129 | <pre>python setup.py install --prefix=/usr/local</pre> |
63 | 130 | |
131 | <p>See the included <tt>INSTALL</tt> file for more information.</p> | |
132 | ||
133 | </body> | |
134 | </html> |