WIMEXPORT(1)
β¨ WIMEXPORT(1) β¨
okay bestie, welcome to wimexport β part of the wimlib family, living in the User Commands section of the manual, and fr fr it's about to be your new fave π
π« NAME π«
wimexport β export image(s) from a WIM archive π«Ά
π SYNOPSIS π
wimexport SRC_WIMFILE SRC_IMAGE DEST_WIMFILE
[DEST_IMAGE_NAME [DEST_IMAGE_DESC]] [OPTION...]
(also known as wimlib-imagex export, same energy, different spelling π
)
πΈ DESCRIPTION πΈ
so like. wimexport β or, equivalently, wimlib-imagex export β takes the image you point at inside SRC_WIMFILE and exports it into DEST_WIMFILE, and you can also glow it up with a new name and/or description on the way out. β¨ If DEST_WIMFILE already exists, the image just gets appended to it, no biggie. If it doesn't exist? A whole new WIM archive gets created to hold the exported image. main character origin story fr.
SRC_IMAGE is which image in SRC_WIMFILE you're exporting, and it can be any of these three vibes:
- the 1-based index of an image (so the first image is
1, not0, okay π) - the name of an image
- the keyword
"all"β which, yes, means literally all the images
and if you need to see what images are even in there, run wiminfo(1), she'll tell you π
If you specify DEST_IMAGE_NAME, that's the name you're giving the image being exported. Default? Whatever its name was in SRC_WIMFILE, no notes. But bestie, heads up: if you do specify it, DEST_IMAGE_NAME has to be either a name that isn't already used in DEST_WIMFILE, or the empty string, which leaves the image unnamed. And you absolutely cannot specify DEST_IMAGE_NAME if you're exporting "all" the images. that's just the rules π
If you specify DEST_IMAGE_DESC, that's the description you're giving the image being exported. Default is its description in SRC_WIMFILE.
wimexport can export images from stand-alone WIMs and from split WIMs and delta WIMs too. peep the SPLIT WIMS section below β¬οΈ
She also does conversions, periodt: non-pipable WIM β pipable WIM, pipable WIM β non-pipable WIM, non-solid WIM β solid WIM, solid WIM β non-solid WIM. versatile icon π
And she can even export a pipable WIM straight to standard output if DEST_WIMFILE is "-" β see --pipable.
π OPTIONS π
--bootβ mark the exported image as the "bootable" image of the WIM. or, if you're exporting multiple images, make whichever image was the bootable one in the source WIM also be the bootable one in the destination WIM. π--checkβ before exporting anything, verify the integrity of the source WIM, the destination WIM, and any referenced WIMs β but only whenever they actually have extra integrity information present. Also: stick extra integrity information into the destination WIM, even if it wasn't there before. double duty bestie β¨--nocheckβ do not include extra integrity information in the destination WIM, even if it was present before.--include-integrityβ include extra integrity information in the destination WIM. it's giving--checkbut without doing any of the verification beforehand, lowkey efficient π«Ά--compress=TYPE[:LEVEL]β specify the compression type β and optionally the compression level for that type β forDEST_WIMFILE. β οΈ note that ifDEST_WIMFILEalready exists, this option cannot change its compression type. want the full deets? see the documentation for this option underwimcapture(1).--chunk-size=SIZEβ set the WIM compression chunk size toSIZE. again, the full tea lives in the docs for this option underwimcapture(1).--recompressβ force all exported data to be recompressed, even if the destination WIM is gonna use the same compression type as the source WIM. no shortcuts, she's doing the work πͺ--solidβ create a "solid" archive that compresses multiple files together. usually this means a significantly better compression ratio π but it comes with disadvantages, like reduced compatibility π. see the docs for this option underwimcapture(1)for more.--solid-compress=TYPE[:LEVEL]β like--compress, but it sets the compression type used in solid resources. see the docs for this option underwimcapture(1).--solid-chunk-size=SIZEβ like--chunk-size, but it sets the chunk size used in solid resources. see the docs for this option underwimcapture(1).--threads=NUM_THREADSβ how many threads to use for compressing data. default: autodetect, i.e. the number of processors. she multitasks π--rebuildβ if you're exporting into an existing WIM, rebuild it instead of appending to it. rebuilding is slower, yeah, but it saves some space that would otherwise be left as a hole in the WIM. also peepwimoptimize(1).--ref="GLOB"β file glob of additional WIMs or split WIM parts to reference resources from. see SPLIT WIMS. this option can be specified multiple times. π note:GLOBis listed in quotes because it gets interpreted bywimexportand might need quoting to protect it from shell expansion. protect her at all costs π«Ά--pipableβ build or rebuildDEST_WIMFILEas a "pipable WIM" that can be applied fully sequentially, including from a pipe. seewimcapture(1)for more about creating pipable WIMs. without this option, the default is to makeDEST_WIMFILEpipable only if it was"-"(standard output) or was already an existing pipable WIM. iykyk β¨--not-pipableβ rebuildDEST_WIMFILEas a normal, non-pipable WIM. this is only useful if you're exporting image(s) into a pipable WIM but you want it rebuilt as non-pipable instead. vibe switch π¦--wimbootβ mark the destination image as WIMBoot-compatible. also, if you're exporting into a new archive, set the compression type to whatever is recommended for WIMBoot (currently,XPRESSwith4096byte chunks).--unsafe-compactβ compact the existing destination WIM in-place and append any new data, eliminating "holes". it's efficient, sure, but bestie in general this option should not be used because a failed or interrupted compaction will corrupt the WIM archive ππ for more info, see the documentation for this option underwimoptimize(1).
π§ SPLIT WIMS π§
you can use wimexport to export images from a split WIM β but not to one, okay? π
SRC_WIMFILE has to point at the first part of the split WIM, and the additional parts get specified in one or more --ref="GLOB" options. and since globbing is built right into --ref, typically only one --ref option is necessary. slay.
for example, the names for the split WIM parts usually go something like:
mywim.swm
mywim2.swm
mywim3.swm
mywim4.swm
mywim5.swm
so to export the first image of this split WIM into a new or existing WIM file "other.wim", run:
wimexport mywim.swm 1 other.wim --ref="mywim*.swm"
π NOTES π
Data consistency: except when you're using --unsafe-compact, it is safe to abort a wimexport command partway through. π«Ά however β after doing that, it's recommended to run wimoptimize on the destination WIM to remove any data that got appended to the physical WIM file but never got incorporated into the structure of the WIM. unless the WIM was being rebuilt (e.g. with --rebuild), in which case you should just delete the temporary file left over. cleanup era β¨
Data deduplication: the WIM format has built-in deduplication (also called "single instancing") of file contents. so when an image is exported, only the file contents that aren't already present in the destination WIM get physically copied. π however, a new copy of the image's metadata resource β which describes the image's directory structure β will always be created. no skipping that one.
ESD files: wimexport supports solid-compressed WIMs, aka "ESD" (.esd) files β except for encrypted ESDs, which have to be decrypted first π. the source and destination files of wimexport can be solid WIMs, non-solid WIMs, or a combination of the two, mix and match bestie. if the destination file doesn't exist, then by default it gets created as solid if the source was solid, or as non-solid if the source was non-solid. want to override that? either specify --solid to create a solid WIM (.esd file), or specify --compress=LZX to create a standard non-solid WIM (.wim file). your call π
π EXAMPLES π
export the second image of 'boot.wim' into the new WIM file 'new.wim':
wimexport boot.wim 2 new.wim
the example above creates "new.wim" with the same compression type as "boot.wim". if you want to change the compression type, specify --compress=TYPE; for example:
wimexport boot.wim 2 new.wim --compress=LZX
export "ESD to WIM" β that is, solid WIM to non-solid WIM:
wimexport install.esd all install.wim --compress=LZX
export "WIM to ESD" β that is, non-solid WIM to solid WIM:
wimexport install.wim all install.esd --solid
π SEE ALSO π
wimlib-imagex(1) wiminfo(1) wimoptimize(1)
and that's the whole page bestie, you ate it π
this was wimlib version 1.14.5, dated January 2026 β go forth and export, icon ππ
π¦ where this page comes from
- arch rolling: wimlib 1.14.5-4 Β· LGPL-2.1-only OR LGPL-3.0-only
- fedora 43: wimlib-utils 1.14.5-1.fc43 Β· GPL-3.0-or-later AND MIT
- fedora 44: wimlib-utils 1.14.5-1.fc44 Β· GPL-3.0-or-later AND MIT
- nixpkgs unstable: wimlib 1.14.5
- ubuntu resolute: wimtools 1.14.5-1 Β· GPL3.0+-with-exception
- ubuntu stonking: wimtools 1.14.5-1build1 Β· GPL3.0+-with-exception
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms