1 .TH IMAGEX "1" "May 2013" "@IMAGEX_PROGNAME@ @VERSION@" "User Commands"
3 @IMAGEX_PROGNAME@-extract \- Extract files or directories from a WIM image
5 \fB@IMAGEX_PROGNAME@ extract\fR \fIWIMFILE\fR \fIIMAGE\fR [\fIPATH\fR...] [\fIOPTION\fR...]
7 \fB@IMAGEX_PROGNAME@ extract\fR extracts one or more files or directory trees
8 from the specified \fIIMAGE\fR contained in the Windows Imaging (WIM) file
11 \fB@IMAGEX_PROGNAME@ extract\fR is intended for extracting only a subset of a
12 WIM image. If you want to extract or "apply" a full WIM image to a directory or
13 NTFS volume, use \fB@IMAGEX_PROGNAME@ apply\fR (1) instead.
15 \fIIMAGE\fR specifies the image in \fIWIMFILE\fR that contains the files or
16 directory trees to extract. It may be a 1-based index of an image in the WIM or
17 the name of an image in the WIM. Use the \fB@IMAGEX_PROGNAME@ info\fR (1)
18 command to show what images a WIM file contains.
20 Each \fIPATH\fR specifies a file or directory tree within the WIM image to
21 extract. See \fBPATH_SPECIFICATIONS\fR.
23 By default, files and directories are extracted to the current directory. Use
24 \fB--dest-dir\fR to choose an alternate target directory. Alternatively, use
25 \fB--to-stdout\fR to extract a file to standard output to pipe into another
28 \fB@IMAGEX_PROGNAME@ extract\fR supports extracting files and directory trees
29 from stand-alone WIMs as well as split WIMs. See \fBSPLIT WIMS\fR.
30 .SH PATH SPECIFICATIONS
31 Each \fIPATH\fR specifies a file or directory tree within the WIM image to
32 extract. Each path must be specified as an absolute path starting from the root
33 of the WIM image, like those output by the \fB@IMAGEX_PROGNAME@ dir\fR (1)
34 command. Path separators may be forward slashes on UNIX, or either forward
35 slashes or backward slashes on Windows. The leading slash is optional.
37 If no \fIPATH\fRs are provided, the default behavior is to extract the full
38 image, as if the path "/" had been provided.
40 You may use \fB@IMAGEX_PROGNAME@ extract\fR to extract files or directory trees
41 from a split WIM. This uses the \fB--refs\fR="\fIGLOB\fR" option in the same
42 way as in other commands such as \fB@IMAGEX_PROGNAME@ apply\fR. See
43 \fB@IMAGEX_PROGNAME@ apply\fR (1) for more details.
47 When reading \fIWIMFILE\fR, verify its integrity if an integrity table is
50 \fB--ref\fR="\fIGLOB\fR"
51 File glob of additional split WIM parts that are part of the split WIM. See
55 Print the path of each file or directory within the WIM image as it is
59 See the documentation for this option in \fB@IMAGEX_PROGNAME@-apply\fR (1).
62 See the documentation for this option in \fB@IMAGEX_PROGNAME@-apply\fR (1).
65 See the documentation for this option in \fB@IMAGEX_PROGNAME@-apply\fR (1).
68 Extract the files to standard output instead of to the filesystem. This can
69 only be provided if all the specified \fIPATH\fRs are to regular files (not
70 directories or reparse points). If present, alternate data streams are not
73 \fB--dest-dir\fR=\fIDIR\fR
74 Extract the files and directories to the directory \fIDIR\fR instead of to the
75 current working directory.
77 See the documentation \fB@IMAGEX_PROGNAME@ apply\fR (1) for documentation about
78 what data and metadata are extracted on UNIX versus on Windows.
80 On UNIX, one can alternatively mount the WIM image with \fB@IMAGEX_PROGNAME@
81 mount\fR and then extract the desired files or directories using any standard
82 command-line or graphical program.
84 Reparse-point fixups (a.k.a. changing absolute symbolic links and junctions to
85 point within the extraction location) are never done by \fB@IMAGEX_PROGNAME@
86 extract\fR. Use \fB@IMAGEX_PROGNAME@ apply\fR if you want this behavior.
88 Unlike \fB@IMAGEX_PROGNAME@ apply\fR, \fB@IMAGEX_PROGNAME@ extract\fR does not
89 support extracting files directly to a NTFS volume using libntfs-3g.
91 Extract a file from the first image in "boot.wim" to the current directory:
94 @IMAGEX_PROGNAME@ extract boot.wim 1 /Windows/System32/notepad.exe
97 Extract a file from the first image in "boot.wim" to standard output:
100 @IMAGEX_PROGNAME@ extract boot.wim 1 /Windows/System32/notepad.exe --to-stdout
103 Extract a file from the first image in "boot.wim" to the specified directory:
106 @IMAGEX_PROGNAME@ extract boot.wim 1 /Windows/System32/notepad.exe --dest-dir=somedir
109 Extract the "sources" directory from the first image in "boot.wim" to the
113 @IMAGEX_PROGNAME@ extract boot.wim 1 /sources
116 Extract multiple files and directories in one command:
119 @IMAGEX_PROGNAME@ extract boot.wim 1 /Windows/Fonts /sources /Windows/System32/cmd.exe
123 .BR @IMAGEX_PROGNAME@ (1)
124 .BR @IMAGEX_PROGNAME@-apply (1)
125 .BR @IMAGEX_PROGNAME@-dir (1)
126 .BR @IMAGEX_PROGNAME@-info (1)
127 .BR @IMAGEX_PROGNAME@-mount (1)