wimlib-imagex
Extract, create, modify, or mount a WIM (Windows Imaging Format) archive
- Provided by: wimtools (Version: 1.9.0-2)
- Source: wimlib
- Report a bug
Extract, create, modify, or mount a WIM (Windows Imaging Format) archive
wimlib-imagex append arguments...
wimlib-imagex apply arguments...
wimlib-imagex capture arguments...
wimlib-imagex delete arguments...
wimlib-imagex dir arguments...
wimlib-imagex export arguments...
wimlib-imagex extract arguments...
wimlib-imagex info arguments...
wimlib-imagex join arguments...
wimlib-imagex mount arguments...
wimlib-imagex mountrw arguments...
wimlib-imagex optimize arguments...
wimlib-imagex split arguments...
wimlib-imagex unmount arguments...
wimlib-imagex update arguments...
wimlib-imagex verify arguments...
wimlib-imagex deals with archives in the Windows Imaging Format (WIM). Its interface is similar to Microsoft's ImageX, but wimlib-imagex is cross-platform and has useful improvements and extensions.
To do its work, wimlib-imagex uses wimlib, an open source C library that provides interfaces for manipulating WIM archives. wimlib is completely independent from the equivalent Microsoft implementation (WIMGAPI, or wimgapi.dll). You can use wimlib in your own programs, although for command-line use wimlib-imagex already provides access to most of wimlib's functionality.
The Windows Imaging Format (WIM) was designed by Microsoft primarily for archiving Windows filesystems, such as NTFS. However, it can be used on other platforms as well, with some limitations. A WIM archive contains one or more images, each of which is a logically independent directory tree. Images are indexed starting from 1, and each may also have a name. File data is stored as content-addressable "streams" that are deduplicated across the entire archive. Streams may be compressed using one of several compression algorithms, including XPRESS and LZX.
An update of the WIM format released with Windows 8 features solid compression using the LZMS compression algorithm. Such files are also called "ESD files" and may carry the extension .esd instead of .wim. wimlib-imagex v1.6.0 and later supports these new files, unless they are encrypted.
wimlib-imagex accepts one of a number of commands (listed above in SYNOPSYS), and additional arguments depending on the specific command. Although wimlib-imagex will print usage information with --help or if you invoke it incorrectly, the full documentation for each wimlib-imagex command can be found in the appropriate manual page.
Note: to save typing, if appropriate hard links or batch files have been installed, a command wimlib-imagex COMMAND can also be accessed as simply wimCOMMAND; for example, wimapply for wimlib-imagex apply.
The following are some of the general features, or use cases, currently supported by wimlib-imagex, and pointers to the relevant commands:
This section presents some of the interesting features of wimlib-imagex in more detail.
WIM files themselves store file and stream names using Windows native "wide character strings", which are UTF-16. On Windows, wimlib works using these same strings, so conversions are usually not necessary and there should be no problems with character encodings.
On UNIX-like systems, wimlib works primarily in the locale-dependent multibyte encoding, which you are strongly recommended to set to UTF-8 to avoid any problems. You can alternatively set the environmental variable WIMLIB_IMAGEX_USE_UTF8 to force wimlib-imagex to use UTF-8 internally, even if the current locale is not UTF-8 compatible.
By default, the case sensitivity of wimlib-imagex differs somewhat between UNIX-like systems and Windows. WIM images may (but usually do not) have multiple files with the same case-insensitive name. Internally, wimlib stores filenames as case-sensitive, but on Windows paths actually provided by the user for use in a WIM image (e.g. for extracting, adding, renaming, or deleting files) will by default be treated as case-insensitive in order to get the "expected" behavior. This differs from the default behavior on UNIX-like systems, where such paths will be treated as case-sensitive.
Note that with case insensitivity, a path component may in general be ambiguous due to multiple files or directories having the same case-insensitive name. In such cases, if there is a file or directory with an exactly matching name, it is chosen; otherwise, one of the case-insensitively matching file or directories is chosen arbitrarily.
The default case sensitivity of wimlib-imagex can be overridden by explicitly setting the environmental variable WIMLIB_IMAGEX_IGNORE_CASE to 1, in which case such paths will be treated case insensitively, or 0, in which such paths will be treated case sensitively.
Regardless of these settings, options and non-path arguments must be specified in lower case.
wimlib-imagex may be redistributed and/or modified under the terms of the GNU General Public License; either version 3 of the License, or (at your option) any later version. There is NO WARRANTY, to the extent permitted by law.
Report bugs to ebiggers3@gmail.com. Feedback and suggestions are also welcome.
wimlib-imagex-append(1), wimlib-imagex-apply(1), wimlib-imagex-capture(1), wimlib-imagex-delete(1), wimlib-imagex-dir(1), wimlib-imagex-export(1), wimlib-imagex-extract(1), wimlib-imagex-info(1), wimlib-imagex-join(1), wimlib-imagex-mount(1), wimlib-imagex-mountrw(1), wimlib-imagex-optimize(1), wimlib-imagex-split(1), wimlib-imagex-unmount(1), wimlib-imagex-update(1), wimlib-imagex-verify(1),