]> wimlib.net Git - wimlib/blob - doc/imagex-optimize.1.in
aa3b947d92c06c8564da3be8a2e555ef973657ea
[wimlib] / doc / imagex-optimize.1.in
1 .TH IMAGEX "1" "August 2013" "@IMAGEX_PROGNAME@ @VERSION@" "User Commands"
2 .SH NAME
3 @IMAGEX_PROGNAME@-optimize \- Optimize a WIM archive
4 .SH SYNOPSIS
5 \fB@IMAGEX_PROGNAME@ optimize\fR \fIWIMFILE\fR [\fIOPTION\fR...]
6 .SH DESCRIPTION
7 \fB@IMAGEX_PROGNAME@ optimize\fR will rebuild the stand-alone WIM \fIWIMFILE\fR.  The new
8 WIM is written to a temporary file, and it is renamed to the original file when
9 it's ready.  This action will remove any holes that have been left as a result
10 of appending images, so the new WIM may be slightly smaller than the old WIM.
11 In addition, some errors in the original WIM may be fixed by re-writing it
12 (although most cannot).
13 .SH OPTIONS
14 .TP 6
15 \fB--check\fR
16 When reading \fIWIMFILE\fR, verify its integrity if an integrity table is
17 present.  In addition, include an integrity table in the optimized WIM.  If this
18 option is not specified, by default the integrity table (if present) is not
19 checked, but an integrity table is included in the new WIM if there was one in
20 the old WIM.
21 .TP
22 \fB--nocheck\fR
23 Neither verify the integrity of \fIWIMFILE\fR using the integrity table, nor
24 include an integrity table in the rebuilt WIM file.
25 .TP
26 \fB--recompress\fR
27 Recompress all compressed streams in \fIWIMFILE\fR when rebuilding it.  This
28 will increase the time needed to rebuild the WIM, unless the WIM is
29 uncompressed, but it may result in a better compression ratio if wimlib can do a
30 better job than the program that wrote the original file.  A side effect of this
31 is that every stream in the original WIM will be checksummed, so this can help
32 verify that the WIM is intact (equivalent to applying all the images from it).
33 .IP ""
34 Note: as mentioned in the README, wimlib generally provides a slightly better
35 XPRESS compression ratio than Microsoft's software, while it generally provides
36 a slightly worse LZX compression ratio than Microsoft's software.  So, you may
37 not want to specify \fB--recompress\fR when optimizing a LZX-compressed WIM
38 created on Windows with Microsoft's ImageX.
39 .TP
40 \fB--threads\fR=\fINUM_THREADS\fR
41 Number of threads to use for compressing data.  Default: autodetect (number of
42 processors).  This parameter is only meaningful when \fB--recompress\fR is also
43 specified.
44 .TP
45 \fB--pipable\fR
46 Rebuild the WIM that it can be applied fully sequentially, including from a
47 pipe.  See \fB@IMAGEX_PROGNAME@ capture\fR(1) for more details about creating
48 pipable WIMs.  By default, when neither \fB--pipable\fR or \fB--not-pipable\fR
49 is specified, the rebuilt WIM will be pipable if and only if it was already
50 pipable.
51 .TP
52 \fB--not-pipable\fR
53 Rebuild the WIM in the non-pipable format.  (This is the default if
54 \fIWIMFILE\fR is not pipable.)
55 .SH NOTES
56 \fB@IMAGEX_PROGNAME@ optimize\fR does not support split WIMs.
57 .PP
58 \fB@IMAGEX_PROGNAME@ optimize\fR is roughly equivalent to:
59 .RS
60 .PP
61 \fB@IMAGEX_PROGNAME@ export\fR \fIWIMFILE\fR all tmp.wim && mv tmp.wim \fIWIMFILE\fR
62 .RE
63 .PP
64 .SH SEE ALSO
65 .BR @IMAGEX_PROGNAME@ (1)
66 .BR @IMAGEX_PROGNAME@-export (1)