]> wimlib.net Git - wimlib/blob - doc/imagex-extract.1.in
cf49abd1f51b57a0302d20e5b43a1fe8b3ee32c5
[wimlib] / doc / imagex-extract.1.in
1 .TH IMAGEX "1" "May 2013" "@IMAGEX_PROGNAME@ @VERSION@" "User Commands"
2 .SH NAME
3 @IMAGEX_PROGNAME@-extract \- Extract files or directories from a WIM image
4 .SH SYNOPSIS
5 \fB@IMAGEX_PROGNAME@ extract\fR \fIWIMFILE\fR \fIIMAGE\fR [\fIPATH\fR...]  [\fIOPTION\fR...]
6 .SH DESCRIPTION
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
9 \fIWIMFILE\fR.
10 .PP
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.
14 .PP
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.
19 .PP
20 Each \fIPATH\fR specifies a file or directory tree within the WIM image to
21 extract.  See \fBPATH_SPECIFICATIONS\fR.
22 .PP
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
26 program.
27 .PP
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.  On
36 Windows, the paths are treated case-insensitively, while on UNIX, paths are
37 treated case-sensitively.
38 .PP
39 If no \fIPATH\fRs are provided, the default behavior is to extract the full
40 image, as if the path "/" had been provided.
41 .SH SPLIT WIMS
42 You may use \fB@IMAGEX_PROGNAME@ extract\fR to extract files or directory trees
43 from a split WIM.  This uses the \fB--refs\fR="\fIGLOB\fR" option in the same
44 way as in other commands such as \fB@IMAGEX_PROGNAME@ apply\fR.  See
45 \fB@IMAGEX_PROGNAME@ apply\fR (1) for more details.
46 .SH OPTIONS
47 .TP 6
48 \fB--check\fR
49 When reading \fIWIMFILE\fR, verify its integrity if an integrity table is
50 present.
51 .TP
52 \fB--ref\fR="\fIGLOB\fR"
53 File glob of additional split WIM parts that are part of the split WIM.  See
54 \fBSPLIT_WIMS\fR.
55 .TP
56 \fB--verbose\fR
57 Print the path of each file or directory within the WIM image as it is
58 extracted.
59 .TP
60 \fB--unix-data\fR
61 See the documentation for this option in \fB@IMAGEX_PROGNAME@-apply\fR (1).
62 .TP
63 \fB--no-acls\fR
64 See the documentation for this option in \fB@IMAGEX_PROGNAME@-apply\fR (1).
65 .TP
66 \fB--strict-acls\fR
67 See the documentation for this option in \fB@IMAGEX_PROGNAME@-apply\fR (1).
68 .TP
69 \fB--include-invalid-names\fR
70 See the documentation for this option in \fB@IMAGEX_PROGNAME@-apply\fR (1).
71 .TP
72 \fB--to-stdout\fR
73 Extract the files to standard output instead of to the filesystem.  This can
74 only be provided if all the specified \fIPATH\fRs are to regular files (not
75 directories or reparse points).  If present, alternate data streams are not
76 extracted.
77 .TP
78 \fB--dest-dir\fR=\fIDIR\fR
79 Extract the files and directories to the directory \fIDIR\fR instead of to the
80 current working directory.
81 .SH NOTES
82 See the documentation \fB@IMAGEX_PROGNAME@ apply\fR (1) for documentation about
83 what data and metadata are extracted on UNIX versus on Windows.
84 .PP
85 On UNIX, one can alternatively mount the WIM image with \fB@IMAGEX_PROGNAME@
86 mount\fR and then extract the desired files or directories using any standard
87 command-line or graphical program.
88 .PP
89 Reparse-point fixups (a.k.a. changing absolute symbolic links and junctions to
90 point within the extraction location) are never done by \fB@IMAGEX_PROGNAME@
91 extract\fR.  Use \fB@IMAGEX_PROGNAME@ apply\fR if you want this behavior.
92 .PP
93 Unlike \fB@IMAGEX_PROGNAME@ apply\fR, \fB@IMAGEX_PROGNAME@ extract\fR does not
94 support extracting files directly to a NTFS volume using libntfs-3g.
95 .SH EXAMPLES
96 Extract a file from the first image in "boot.wim" to the current directory:
97 .RS
98 .PP
99 @IMAGEX_PROGNAME@ extract boot.wim 1 /Windows/System32/notepad.exe
100 .RE
101 .PP
102 Extract a file from the first image in "boot.wim" to standard output:
103 .RS
104 .PP
105 @IMAGEX_PROGNAME@ extract boot.wim 1 /Windows/System32/notepad.exe --to-stdout
106 .RE
107 .PP
108 Extract a file from the first image in "boot.wim" to the specified directory:
109 .RS
110 .PP
111 @IMAGEX_PROGNAME@ extract boot.wim 1 /Windows/System32/notepad.exe --dest-dir=somedir
112 .RE
113 .PP
114 Extract the "sources" directory from the first image in "boot.wim" to the
115 current directory:
116 .RS
117 .PP
118 @IMAGEX_PROGNAME@ extract boot.wim 1 /sources
119 .RE
120 .PP
121 Extract multiple files and directories in one command:
122 .RS
123 .PP
124 @IMAGEX_PROGNAME@ extract boot.wim 1 /Windows/Fonts /sources /Windows/System32/cmd.exe
125 .RE
126 .PP
127 .SH SEE ALSO
128 .BR @IMAGEX_PROGNAME@ (1)
129 .BR @IMAGEX_PROGNAME@-apply (1)
130 .BR @IMAGEX_PROGNAME@-dir (1)
131 .BR @IMAGEX_PROGNAME@-info (1)
132 .BR @IMAGEX_PROGNAME@-mount (1)