web/index.html

Sat, 26 Jul 2008 12:55:37 -0400

author
Brett Smith <brett@brettcsmith.org>
date
Sat, 26 Jul 2008 12:55:37 -0400
branch
trunk
changeset 89
fc0d6a3fde53
parent 75
856de7e8f494
child 93
6c20788653a8
permissions
-rw-r--r--

Release 6.2

63
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN"
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
2 "http://www.w3.org/TR/html4/strict.dtd">
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
3
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
4 <html><head><title>dtrx: Intelligent archive extraction</title>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
5 <link rel="stylesheet" href="common.css">
89
fc0d6a3fde53 Release 6.2
Brett Smith <brett@brettcsmith.org>
parents: 75
diff changeset
6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
63
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
7 </head>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
8 <body>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
9 <h1>dtrx: Intelligent archive extraction</h1>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
10
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
11 <h2>Introduction</h2>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
12
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
13 <p><span class="pname">dtrx</span> stands for &ldquo;Do The Right
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
14 Extraction.&rdquo; It's a tool for Unix-like systems that takes all the
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
15 hassle out of extracting archives. Here's an example of how you use
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
16 it:</p>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
17
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
18 <pre>$ dtrx linux-2.6.10.tar.bz2</pre>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
19
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
20 <p>That's basically the same thing as:</p>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
21
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
22 <pre>$ tar -jxf linux-2.6.10.tar.bz2</pre>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
23
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
24 <p>But there's more to it than that. You know those really annoying files
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
25 that don't put everything in a dedicated directory, and have the
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
26 permissions all wrong?</p>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
27
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
28 <pre>$ tar -zvxf random-tarball.tar.gz
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
29 foo
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
30 bar
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
31 data/
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
32 data/text
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
33 $ cd data/
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
34 cd: permission denied: data</pre>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
35
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
36 <p><span class="pname">dtrx</span> takes care of all those problems for
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
37 you, too:</p>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
38
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
39 <pre>$ dtrx random-tarball.tar.gz
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
40 $ cd random-tarball/data
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
41 $ cat text
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
42 This all works properly.</pre>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
43
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
44 <p><span class="pname">dtrx</span> is simple and powerful. Just use the
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
45 same command for all your archive files, and they'll never frustrate you
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
46 again.</p>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
47
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
48 <h2>Features</h2>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
49
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
50 <ul>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
51
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
52 <li><strong>Handles many archive types</strong>: You only need to remember
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
53 one simple command to extract
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
54
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
55 <span class="pname">tar</span>,
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
56 <span class="pname">zip</span>,
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
57 <span class="pname">cpio</span>,
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
58 <span class="pname">deb</span>,
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
59 <span class="pname">rpm</span>,
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
60 <span class="pname">gem</span>,
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
61 <span class="pname">7z</span>,
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
62 <span class="pname">cab</span>,
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
63 <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
64 <span class="pname">bz2</span>,
856de7e8f494 Update for 6.1, plus some tweaks here and there.
Brett Smith <brettcsmith@brettcsmith.org>
parents: 64
diff changeset
65 <span class="pname">lzma</span>, and many kinds of
856de7e8f494 Update for 6.1, plus some tweaks here and there.
Brett Smith <brettcsmith@brettcsmith.org>
parents: 64
diff changeset
66 <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
67 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
68 files.
63
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
69
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
70 If they have any extra compression, like <span
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
71 class="pname">tar.bz2</span>, <span class="pname">dtrx</span> will take
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
72 care of that for you, too.</li>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
73
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
74 <li><strong>Keeps everything organized</strong>: <span
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
75 class="pname">dtrx</span> will make sure that archives are extracted into
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
76 their own dedicated directories.</li>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
77
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
78 <li><strong>Sane permissions</strong>: <span class="pname">dtrx</span> makes
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
79 sure you can read and write all the files you just extracted, while leaving
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
80 the rest of the permissions intact.</li>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
81
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
82 <li><strong>Recursive extraction</strong>: <span class="pname">dtrx</span> can
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
83 find archives inside the archive and extract those too.</li>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
84
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
85 </ul>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
86
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
87 <h2>Download</h2>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
88
89
fc0d6a3fde53 Release 6.2
Brett Smith <brett@brettcsmith.org>
parents: 75
diff changeset
89 <p><a href="dtrx-6.2.tar.gz">Download <span class="pname">dtrx</span>
fc0d6a3fde53 Release 6.2
Brett Smith <brett@brettcsmith.org>
parents: 75
diff changeset
90 6.2</a>. The SHA1 checksum for this file
fc0d6a3fde53 Release 6.2
Brett Smith <brett@brettcsmith.org>
parents: 75
diff changeset
91 is <tt>7f2c633c97e79083c08cb63f3c155395f8f88646</tt>. New features in this
63
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
92 release include:</p>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
93
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
94 <ul>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
95
89
fc0d6a3fde53 Release 6.2
Brett Smith <brett@brettcsmith.org>
parents: 75
diff changeset
96 <li>A new <tt>--one-entry</tt> option: Normally, if an archive only
fc0d6a3fde53 Release 6.2
Brett Smith <brett@brettcsmith.org>
parents: 75
diff changeset
97 contains one file or directory with a name that doesn't match the
fc0d6a3fde53 Release 6.2
Brett Smith <brett@brettcsmith.org>
parents: 75
diff changeset
98 archive's, dtrx will ask you how to handle it. With this option, you can
fc0d6a3fde53 Release 6.2
Brett Smith <brett@brettcsmith.org>
parents: 75
diff changeset
99 specify ahead of time what should happen.</li>
fc0d6a3fde53 Release 6.2
Brett Smith <brett@brettcsmith.org>
parents: 75
diff changeset
100 <li>Since version 6.0, when you extracted or listed the contents of a cpio
fc0d6a3fde53 Release 6.2
Brett Smith <brett@brettcsmith.org>
parents: 75
diff changeset
101 archive, dtrx would display a warning that simply said &quot;1234
fc0d6a3fde53 Release 6.2
Brett Smith <brett@brettcsmith.org>
parents: 75
diff changeset
102 blocks.&quot; dtrx 6.2 suppresses this message.</li>
fc0d6a3fde53 Release 6.2
Brett Smith <brett@brettcsmith.org>
parents: 75
diff changeset
103 <li>When you try to list the contents of an archive, dtrx will now cope
fc0d6a3fde53 Release 6.2
Brett Smith <brett@brettcsmith.org>
parents: 75
diff changeset
104 with misnamed files more gracefully, giving more accurate results and
fc0d6a3fde53 Release 6.2
Brett Smith <brett@brettcsmith.org>
parents: 75
diff changeset
105 showing fewer error messages.</li>
fc0d6a3fde53 Release 6.2
Brett Smith <brett@brettcsmith.org>
parents: 75
diff changeset
106 <li>dtrx 6.2 will only show you error messages from archive extraction if
fc0d6a3fde53 Release 6.2
Brett Smith <brett@brettcsmith.org>
parents: 75
diff changeset
107 it is completely unable to extract the file. If one of its extraction
fc0d6a3fde53 Release 6.2
Brett Smith <brett@brettcsmith.org>
parents: 75
diff changeset
108 methods succeeds, it will no longer show you the error messages from
fc0d6a3fde53 Release 6.2
Brett Smith <brett@brettcsmith.org>
parents: 75
diff changeset
109 previous extraction attempts.</li>
fc0d6a3fde53 Release 6.2
Brett Smith <brett@brettcsmith.org>
parents: 75
diff changeset
110 <li>dtrx is now better about cleaning up partially extracted archives when
fc0d6a3fde53 Release 6.2
Brett Smith <brett@brettcsmith.org>
parents: 75
diff changeset
111 it encounters an error or signal.</li>
fc0d6a3fde53 Release 6.2
Brett Smith <brett@brettcsmith.org>
parents: 75
diff changeset
112 <li>Users will no longer see error messages about broken pipes from
fc0d6a3fde53 Release 6.2
Brett Smith <brett@brettcsmith.org>
parents: 75
diff changeset
113 dtrx.</li>
63
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
114
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
115 </ul>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
116
64
d7b46cae939b Add notes about the hg repo.
Brett Smith <brett@brettcsmith.org>
parents: 63
diff changeset
117 <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
118 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
119 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
120 repository. A
64
d7b46cae939b Add notes about the hg repo.
Brett Smith <brett@brettcsmith.org>
parents: 63
diff changeset
121 <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
122 available, or you can just run:</p>
d7b46cae939b Add notes about the hg repo.
Brett Smith <brett@brettcsmith.org>
parents: 63
diff changeset
123
d7b46cae939b Add notes about the hg repo.
Brett Smith <brett@brettcsmith.org>
parents: 63
diff changeset
124 <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
125
63
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
126 <h2>Requirements</h2>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
127
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
128 <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
129 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
130 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
131 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
132 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
133 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
134 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
135 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
136 utilities.</p>
63
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
137
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
138 <h2>Installation</h2>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
139
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
140 <p>You can just put <span class="pname">scripts/dtrx</span> wherever is
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
141 convenient for you, but if you want to install the program system-wide, you
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
142 can also run the following command as root or equivalent:</p>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
143
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
144 <pre>python setup.py install</pre>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
145
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
146 <p>See the included <tt>INSTALL</tt> file for more information.</p>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
147
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
148 </body>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
149 </html>

mercurial