]> wimlib.net Git - wimlib/blob - doc/imagex.1.in
Merge branch with pipable WIM support
[wimlib] / doc / imagex.1.in
1 .TH IMAGEX 1 "August 2013" "@IMAGEX_PROGNAME@ @VERSION@" "User Commands"
2 .SH NAME
3 @IMAGEX_PROGNAME@ \- Create, modify, extract, mount, or unmount a WIM (Windows Imaging Format) archive
4 .SH SYNOPSIS
5 \fB@IMAGEX_PROGNAME@ append\fR \fIarguments...\fR
6 .br
7 \fB@IMAGEX_PROGNAME@ apply\fR \fIarguments...\fR
8 .br
9 \fB@IMAGEX_PROGNAME@ capture\fR \fIarguments...\fR
10 .br
11 \fB@IMAGEX_PROGNAME@ delete\fR \fIarguments...\fR
12 .br
13 \fB@IMAGEX_PROGNAME@ dir\fR \fIarguments...\fR
14 .br
15 \fB@IMAGEX_PROGNAME@ export\fR \fIarguments...\fR
16 .br
17 \fB@IMAGEX_PROGNAME@ extract\fR \fIarguments...\fR
18 .br
19 \fB@IMAGEX_PROGNAME@ info\fR \fIarguments...\fR
20 .br
21 \fB@IMAGEX_PROGNAME@ join\fR \fIarguments...\fR
22 .br
23 \fB@IMAGEX_PROGNAME@ mount\fR \fIarguments...\fR
24 .br
25 \fB@IMAGEX_PROGNAME@ mountrw\fR \fIarguments...\fR
26 .br
27 \fB@IMAGEX_PROGNAME@ optimize\fR \fIarguments...\fR
28 .br
29 \fB@IMAGEX_PROGNAME@ split\fR \fIarguments...\fR
30 .br
31 \fB@IMAGEX_PROGNAME@ unmount\fR \fIarguments...\fR
32 .br
33 \fB@IMAGEX_PROGNAME@ update\fR \fIarguments...\fR
34 .SH DESCRIPTION
35 \fB@IMAGEX_PROGNAME@\fR is able to deal with archives in the Windows Imaging
36 Format (.wim files). Its interface is meant to be similar to Microsoft's
37 imagex.exe program.
38 .PP
39 To do its work, \fB@IMAGEX_PROGNAME@\fR uses \fBwimlib\fR, a library which
40 provides interfaces for manipulating WIM archives.  You could wimlib in your own
41 programs if you wanted to.  wimlib's public interface is documented.
42 .SH COMMANDS
43 There is a separate manual page for each \fB@IMAGEX_PROGNAME@\fR command.
44 .SH SUPPORTED FEATURES
45 The following general features are currently supported (note: this is not a
46 complete list; also, certain features, such as mounting, are supported on UNIX
47 but not Windows):
48 .IP \[bu] 4
49 Create a stand-alone WIM from a directory or NTFS volume (\fB@IMAGEX_PROGNAME@ capture\fR)
50 .IP \[bu]
51 Capture a WIM image directly to standard output in a special pipable format
52 (\fB@IMAGEX_PROGNAME@ capture\fR)
53 .IP \[bu]
54 Append a directory or NTFS volume onto a stand-alone WIM as a new image (\fB@IMAGEX_PROGNAME@
55 append\fR)
56 .IP \[bu]
57 Apply an image from a stand-alone or split WIM to a directory or NTFS volume
58 (\fB@IMAGEX_PROGNAME@ apply\fR)
59 .IP \[bu]
60 Apply an image from a special pipable WIM format sent over standard input
61 (\fB@IMAGEX_PROGNAME@ apply\fR)
62 .IP \[bu]
63 Mount an image from a stand-alone or split WIM read-only (\fB@IMAGEX_PROGNAME@ mount\fR)
64 .IP \[bu]
65 Mount an image from a stand-alone WIM read-write (\fB@IMAGEX_PROGNAME@ mountrw\fR)
66 .IP \[bu]
67 Extract individual files or directories from a WIM without mounting it
68 (\fB@IMAGEX_PROGNAME@ extract\fR)
69 .IP \[bu]
70 Make changes to a WIM image without mounting it (\fB@IMAGEX_PROGNAME@ update\fR)
71 .IP \[bu]
72 Delete image(s) from a stand-alone WIM (\fB@IMAGEX_PROGNAME@ delete\fR)
73 .IP \[bu]
74 Export image(s) from a stand-alone or split WIM (\fB@IMAGEX_PROGNAME@ export\fR)
75 .IP \[bu]
76 Display information about a WIM file (\fB@IMAGEX_PROGNAME@ info\fR, \fB@IMAGEX_PROGNAME@ dir\fR)
77 .IP \[bu]
78 Change the name or description of an image in the WIM (\fB@IMAGEX_PROGNAME@ info\fR)
79 .IP \[bu]
80 Change which image in a WIM is bootable (\fB@IMAGEX_PROGNAME@ info\fR)
81 .IP \[bu]
82 Combine split WIMs into one stand-alone WIM (\fB@IMAGEX_PROGNAME@ join\fR)
83 .IP \[bu]
84 Split a stand-alone WIM into multiple parts (\fB@IMAGEX_PROGNAME@ split\fR)
85 .IP \[bu]
86 Support for all WIM compression types, both compression and decompression (LZX,
87 XPRESS, and none)
88 .IP \[bu]
89 WIM integrity table is supported (\fB--check\fR option to many commands)
90 .IP \[bu]
91 WIM XML data (parsed and written using \fBlibxml\fR(3))
92 .SH DIFFERENCES FROM MICROSOFT IMAGEX
93 Although \fB@IMAGEX_PROGNAME@\fR is similar to Microsoft's implementation of
94 ImageX, there are a number of key differences between the two programs:
95 .IP \[bu] 6
96 \fB@IMAGEX_PROGNAME@\fR is supported on both UNIX-based systems and Windows;
97 thus, much functionality was designed around this.
98 .IP \[bu]
99 The command-line syntax of the two programs is similar but not exactly the same.
100 .IP \[bu]
101 As of wimlib v1.5.0, for convenience \fB@IMAGEX_PROGNAME@\fR automatically
102 preserves the integrity table in WIMs that have one, even when \fB--check\fR is
103 not specified.
104 .IP \[bu]
105 As of wimlib v1.5.0, a special "pipable" WIM format that is not compatible with
106 Microsoft's software is supported.  This allows capturing and applying images
107 directly to standard output or from standard input, respectively; this can be
108 used to pipe images to or from a server over the network to implement fast
109 filesystem imaging and restore.
110 .IP \[bu]
111 On UNIX, because Microsoft designed the WIM file format to accomodate
112 Windows-specific and NTFS-specific features, wimlib must have two separate image
113 capture and application modes (although the \fB@IMAGEX_PROGNAME@\fR subcommands
114 for the modes are the same): one for general image capture and application, and
115 one for the capture or application of an image specifically from/to an NTFS
116 volume.
117 .IP ""
118 Note: the above applies to UNIX builds of \fB@IMAGEX_PROGNAME@\fR.  On the
119 Windows build, there is only one image capture and application mode, similar to
120 Microsoft's ImageX.
121 .IP \[bu]
122 Microsoft's version has some weird limitations, like it won't let you extract a
123 WIM on a shared folder, and it requires some commands to be run only from
124 Windows PE and not from regular Windows.  \fB@IMAGEX_PROGNAME@\fR does not have
125 these unusual limitations.
126 .IP \[bu]
127 There are bugs in Microsoft's WIM library and I obviously have not included the
128 same bugs in wimlib, although in some cases I have had to work around bugs for
129 compatibility purposes.
130 .IP \[bu]
131 \fB@IMAGEX_PROGNAME@\fR offers the extra command \fB@IMAGEX_PROGNAME@ optimize\fR,
132 which lets you easily remove wasted space in a WIM (which can arise after
133 a WIM image is appended or mounted read-write).
134 .IP \[bu]
135 \fB@IMAGEX_PROGNAME@\fR also offers the command \fB@IMAGEX_PROGNAME@ join\fR, which lets you
136 easily join the parts of a split WIM.
137 .IP \[bu]
138 \fB@IMAGEX_PROGNAME@\fR offers the extra commands \fB@IMAGEX_PROGNAME@
139 extract\fR and \fB@IMAGEX_PROGNAME@ update\fR, which let you quickly extract
140 files from or make changes to a WIM image without mounting it.
141 .IP \[bu]
142 \fB@IMAGEX_PROGNAME@ apply\fR supports keeping files hard-linked or symlinked
143 across WIM images when extracted from a WIM.  So you can, for example, extract
144 different versions of Windows from an install.wim without using much extra
145 space.  (Note: this functionality is only available in UNIX builds of wimlib.)
146 .IP \[bu]
147 \fB@IMAGEX_PROGNAME@ capture\fR supports combining multiple separate directories
148 and files together in a configurable way to create a WIM image.
149 .IP \[bu]
150 wimlib's XPRESS compressor is better than Microsoft's.
151 .IP \[bu]
152 wimlib's LZX compressor is worse than Microsoft's.
153 .IP \[bu]
154 wimlib supports multithreaded compression, which can make it much faster to
155 create compressed WIM files.
156 .IP \[bu]
157 \fB@IMAGEX_PROGNAME@ capture\fR supports a special mode where UNIX file modes,
158 owners, and groups are stored.  (Note: this functionality is only available in
159 UNIX builds.)
160 .IP \[bu]
161 \fB@IMAGEX_PROGNAME@ mount\fR and \fB@IMAGEX_PROGNAME@ mountrw\fR are much faster than
162 Microsoft's versions for some reason.  I don't know what they have their program
163 do that takes so long to simply set up a mountpoint.  (Note: this functionality
164 is only available in UNIX builds.)
165 .IP \[bu]
166 \fB@IMAGEX_PROGNAME@ mount\fR supports mounting an image from a split WIM, but
167 Microsoft's software does not.  (Note: this functionality is only available in
168 UNIX builds.)
169 .SH LOCALES AND CHARACTER ENCODINGS
170 On Windows, wimlib works in UTF-16LE, and there should be no problems with
171 character encodings.
172 .PP
173 On UNIX, wimlib works primarily in the locale-dependent multibyte encoding,
174 which you are strongly recommended to set to UTF-8 to avoid any problems.
175 .SH CASE SENSITIVITY
176 The case sensitivity of \fB@IMAGEX_PROGNAME@\fR differs somewhat between UNIX
177 and Windows.  \fB@IMAGEX_PROGNAME@\fR internally treats filenames as
178 case-sensitive, but on Windows it will treat paths actually provided by the user
179 as case-insensitive in order to get the "expected" behavior.  Otherwise, options
180 and non-path arguments should be specified in lower case.
181 .SH WARNING
182 Note: \fBwimlib\fR and \fB@IMAGEX_PROGNAME@\fR are experimental.  Use Microsoft's
183 imagex.exe if you have to make sure your WIM files are made "correctly".  Feel
184 free to submit a bug report if you find a bug.
185 .PP
186 Some parts of the WIM file format are poorly documented or even completely
187 undocumented, so I've just had to do the best I can to read and write WIMs in a
188 way that appears to be compatible with Microsoft's software.
189 .SH REPORTING BUGS
190 Report bugs to ebiggers3@gmail.com.
191 .SH SEE ALSO
192 .BR @IMAGEX_PROGNAME@-append (1),
193 .BR @IMAGEX_PROGNAME@-apply (1),
194 .BR @IMAGEX_PROGNAME@-capture (1),
195 .BR @IMAGEX_PROGNAME@-delete (1),
196 .BR @IMAGEX_PROGNAME@-dir (1),
197 .BR @IMAGEX_PROGNAME@-export (1),
198 .BR @IMAGEX_PROGNAME@-extract (1),
199 .BR @IMAGEX_PROGNAME@-info (1),
200 .BR @IMAGEX_PROGNAME@-join (1),
201 .BR @IMAGEX_PROGNAME@-mount (1),
202 .BR @IMAGEX_PROGNAME@-mountrw (1),
203 .BR @IMAGEX_PROGNAME@-optimize (1),
204 .BR @IMAGEX_PROGNAME@-split (1),
205 .BR @IMAGEX_PROGNAME@-unmount (1),
206 .BR @IMAGEX_PROGNAME@-update (1),