web/index.html

Thu, 05 Jun 2008 21:44:38 -0400

author
Brett Smith <brett@brettcsmith.org>
date
Thu, 05 Jun 2008 21:44:38 -0400
branch
trunk
changeset 63
0b0bb1608b37
child 64
d7b46cae939b
permissions
-rw-r--r--

add web site to hg repo

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">
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
6 </head>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
7 <body>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
8 <h1>dtrx: Intelligent archive extraction</h1>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
9
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
10 <h2>Introduction</h2>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
11
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
12 <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
13 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
14 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
15 it:</p>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
16
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
17 <pre>$ dtrx linux-2.6.10.tar.bz2</pre>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
18
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
19 <p>That's basically the same thing as:</p>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
20
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
21 <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
22
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
23 <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
24 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
25 permissions all wrong?</p>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
26
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
27 <pre>$ tar -zvxf random-tarball.tar.gz
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
28 foo
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
29 bar
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
30 data/
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
31 data/text
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
32 $ cd data/
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
33 cd: permission denied: data</pre>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
34
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
35 <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
36 you, too:</p>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
37
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
38 <pre>$ dtrx random-tarball.tar.gz
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
39 $ cd random-tarball/data
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
40 $ cat text
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
41 This all works properly.</pre>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
42
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
43 <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
44 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
45 again.</p>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
46
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
47 <h2>Features</h2>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
48
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
49 <ul>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
50
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
51 <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
52 one simple command to extract
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
53
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
54 <span class="pname">tar</span>,
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
55 <span class="pname">zip</span>,
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
56 <span class="pname">cpio</span>,
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
57 <span class="pname">deb</span>,
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
58 <span class="pname">rpm</span>,
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
59 <span class="pname">gem</span>,
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
60 <span class="pname">7z</span>,
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
61 <span class="pname">cab</span>,
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
62 <span class="pname">gz</span>,
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
63 <span class="pname">bz2</span>, and
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
64 <span class="pname">lzma</span> files.
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
65
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
66 If they have any extra compression, like <span
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
67 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
68 care of that for you, too.</li>
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 <li><strong>Keeps everything organized</strong>: <span
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
71 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
72 their own dedicated directories.</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>Sane permissions</strong>: <span class="pname">dtrx</span> makes
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
75 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
76 the rest of the permissions intact.</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>Recursive extraction</strong>: <span class="pname">dtrx</span> can
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
79 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
80
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
81 </ul>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
82
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
83 <h2>Download</h2>
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 <p><a href="dtrx-6.0.tar.gz">Download <span class="pname">dtrx</span>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
86 6.0</a>. The SHA1 checksum for this file
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
87 is <tt>dbe0211c90d6d03035f612fe31f96c825aa75274</tt>. New features in this
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
88 release include:</p>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
89
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
90 <ul>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
91
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
92 <li>When you specify <tt>-v</tt> at the command
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
93 line, <span class="pname">dtrx</span> will display the files it
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
94 extracts, much like <span class="pname">tar</span>.</li>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
95
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
96 <li>When <span class="pname">dtrx</span> prompts you about how to handle
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
97 recursive archives, you now have the option of listing what those
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
98 archives before making a decision.</li>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
99
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
100 <li><span class="pname">dtrx</span> will now provide more information about
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
101 why a particular extraction attempt failed. It will show you error
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
102 messages from all the attempts it made, rather than only the last error
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
103 it got. It will also detect and warn you when one of the underlying
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
104 extraction tools, like <span class="pname">cabextract</span>, cannot be
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
105 found.</li>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
106
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
107 <li><span class="pname">dtrx</span> does a better job of cleaning up after
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
108 itself. It wouldn't always clean up temporary files after certain
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
109 errors; that has been fixed. It also catches SIGINT and SIGTERM and
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
110 cleans up before finishing execution.</li>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
111
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
112 <li>Version 5.0 introduced a regression such
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
113 that <span class="pname">dtrx</span> would not offer to extract
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
114 recursive archives that were hidden under subdirectories. Version 6.0
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
115 fixes that.</li>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
116
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
117 </ul>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
118
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
119 <h2>Requirements</h2>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
120
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
121 <p>If you have Python 2.4 or greater, this should work out of the box. If
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
122 you're stuck on Python 2.3, you can use this if you install the <a
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
123 href="http://www.lysator.liu.se/~astrand/popen5/">subprocess module</a>.
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
124 You'll need the usual tools for the archive types you want to extract: for
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
125 example, if you're extracting <span class="pname">zip</span> files, you'll
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
126 need <span class="pname">zipinfo</span> and <span
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
127 class="pname">unzip</span>.</p>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
128
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
129 <h2>Installation</h2>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
130
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
131 <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
132 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
133 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
134
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
135 <pre>python setup.py install</pre>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
136
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
137 <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
138
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
139 </body>
0b0bb1608b37 add web site to hg repo
Brett Smith <brett@brettcsmith.org>
parents:
diff changeset
140 </html>

mercurial