DWARFSEXTRACT(1)
π dwarfsextract β the general commands manual page, bestie edition π
okay so this is dwarfsextract(1), and if you've ever been like "help, how do I get stuff out of a DwarFS image" β this is your girl. she's the extraction tool. she unpacks. she slays. let's go π
β¨ NAME β¨
dwarfsextract β extract DwarFS image π
π¦ SYNOPSIS π¦
dwarfsextract -i image [-o dir] [options...]
dwarfsextract -i image -f format [-o file] [options...]
Like, two modes, both iconic. pick your fighter β¨
πΈ DESCRIPTION πΈ
okay so dwarfsextract literally lets you extract a DwarFS image β either straight into another archive file, or into a directory on disk. no big deal, just main character energy π
Wanna extract the filesystem image to a directory? do this:
dwarfsextract -i image.dwarfs -o output-directory
β οΈ heads up bestie: the output directory must exist. she will not create it for you. that's a you problem π
You can also rewrite the contents of the filesystem image as another archive type, like, say you want a tar archive:
dwarfsextract -i image.dwarfs -o output.tar -f ustar
For a list of supported formats, see libarchive-formats(5) π₯
If you want to compress the output archive, you can use a pipeline (yes, we love a pipeline):
dwarfsextract -i image.dwarfs -f ustar | gzip > output.tar.gz
You could also use this as an alternative way to extract the files to disk:
dwarfsextract -i image.dwarfs -f cpio | cpio -id
so many ways to eat, fr fr π
π OPTIONS π
-i,--input=fileβ Path to the source filesystem. the whole point, honestly π«Ά-o,--output=directory|fileβ If no format is specified, this is the directory to which the contents of the filesystem should be extracted. If a format is specified, this is the name of the output archive. You can omit this option entirely, in which case the default is to extract the files to the current directory, or to write the archive data tostdout. she's flexible like that β¨--pattern=glob-patternβ If specified, only extract entries matching the pattern. Can be specified multiple times, in which case all files matching one or more patterns will be extracted. Can also be specified without--patternfor simplicity. If prefixed withi:, the glob pattern match will be case-insensitive, e.g.i:**/*.txtwould match all.txt,.TXTand.tXtfiles. If you want the actual pattern to start withi:, you have to prefix the pattern with:, i.e.:i:.... The glob patterns support the wildcards*and?, character classes ([avt]), ranges ([a-h]), complementation ([!a-h]) and globstar (**). so many options, she ate π--skip-devicesβ Do not extract device nodes. Extracting device nodes to disk requires elevated privileges. Similarly, some archive formats do not support device nodes at all. This option can be used to avoid errors if you only want to extract non-device files. lowkey useful ngl π--skip-specialsβ Do not extract special files (sockets, fifos). This can be useful when extracting to a filesystem or archive format that does not support special files. π-O,--image-offset=value|autoβ Specify the byte offset at which the filesystem is located in the image. Useautoto detect the offset automatically. This is also the default. This is only useful for images that have some header located before the actual filesystem data. iykyk π§-f,--format=formatβ The archive format to produce. If this is left empty or unspecified, files will be extracted to the output directory (or the current directory if no output directory is specified). For a full list of supported formats, seelibarchive-formats(5). If an output file is specified,--format=autocan be used to automatically determine the format and filters from the file name. π--format-filters=filtersβ Comma-separated list of libarchive filters to apply to the selected format. Filters will be selected based on the file name with--format=auto. It is not supported to use both--format=autoand--format-filters. pick one, bestie β--format-options=optionsβ Comma-separated libarchive options for the specific output format/filters. The options are passed to libarchive. For a full list of options for each output format, seearchive_write_set_options(3). π--continue-on-errorβ Try to continue with extraction even when errors are encountered. This only applies to errors when reading from the file system image. Errors when writing the extracted files will still be fatal. so like, half brave π«Ά--disable-integrity-checkβ This option disables all block integrity checks on the file system data. There is a non-zero chance that this allows further data to be read from corrupted file systems. However, there's also a non-zero chance that it will completely crash the program. So please don't use this unless you know what you're doing.
π¨ for real though: this one's a gamble. could save your data, could crash the whole program. know what you're doing before you touch it. periodt π
--stdout-progressβ Write progress percentage tostdout. Useful for piping to tools likezenity. cute little progress bar moment β-n,--num-workers=valueβ Number of worker threads used for extracting the filesystem. get that parallel energy π₯--num-disk-writers=valueβ When extracting to disk (instead of an archive), use this number of extra writer threads to create and write regular files. This can improve throughput at the cost of higher CPU usage, in particular when extracting a large number of small files. The default value of0means that only a single writer is used for all file system entries. π-s,--cache-size=valueβ Size of the block cache, in bytes. You can append suffixes (k,m,g) to specify the size in KiB, MiB and GiB, respectively. Note that this is not the upper memory limit of the process, as there may be blocks in flight that are not stored in the cache. Also, each block that hasn't been fully decompressed yet will carry decompressor state along with it, which can use a significant amount of additional memory. so like, don't think this is a hard cap, bestie π--log-level=nameβ Specify a logging level. π--log-with-contextβ Enable logging context regardless of level. By default, context is enabled if the level isverbose,debugortrace. πΈ--perfmon=name[,name...]β Enable performance monitoring for the list of comma-separated components. This option is only available if the project was built with performance monitoring enabled. Available components includefuse,filesystem_v2,inode_reader_v2andblock_cache. π--perfmon-trace=fileβ Write JSON trace data for all components enabled by--perfmonto this file when the process exits. π-h,--helpβ Show program help, including option defaults. the classic π«Ά--manβ If the project was built with support for built-in manual pages, this option will show the manual page. If supported by the terminal and a suitable pager (e.g.less) is found, the manual page is displayed in the pager. meta, honestly π¦
π ENVIRONMENT VARIABLES π
See dwarfs-env(7) dwarfs-env.md for environment variables that influence the behavior of dwarfsextract. β¨
π AUTHOR π
Written by Marcus Holland-Moritz. π
π COPYRIGHT π
Copyright (C) Marcus Holland-Moritz.
π₯ SEE ALSO π₯
mkdwarfs(1) mkdwarfs.md, dwarfs(1) dwarfs.md, dwarfsck(1) dwarfsck.md, dwarfs-format(5) dwarfs-format.md, dwarfs-env(7) dwarfs-env.md, libarchive-formats(5)
and that's the whole page, bestie π this one's dated January 1980 (yes, that January 1980, iconic vintage vibes β) and it's from the General Commands Manual β go extract something gorgeous π¦β¨π
π¦ where this page comes from
- nixpkgs unstable: dwarfs 0.15.8
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms