LinuxCommandLibrary

cabextract

Extract Microsoft cabinet archives

TLDR

Extract cabinet file

$ cabextract [file.cab]
copy
List contents without extracting
$ cabextract -l [file.cab]
copy
Extract to specific directory
$ cabextract -d [output_dir] [file.cab]
copy
Test archive integrity
$ cabextract -t [file.cab]
copy
Extract with filter pattern
$ cabextract -F "*.dll" [file.cab]
copy
Extract with lowercase filenames
$ cabextract -L [file.cab]
copy
Extract from embedded cabinet in exe
$ cabextract [setup.exe]
copy

SYNOPSIS

cabextract [options] cabinetfile_...

DESCRIPTION

cabextract extracts files from Microsoft cabinet (.cab) archives. It can also extract cabinets embedded in other files like executables. Supports all Microsoft cabinet formats and Windows CE installation files.

PARAMETERS

-l, --list

List contents without extracting
-t, --test
Test integrity, show MD5 checksums
-d directory, --directory=directory
Extract to specified directory
-F pattern, --filter=pattern
Extract only files matching shell pattern
-f, --fix
Attempt to salvage corrupted archives
-L, --lowercase
Convert filenames to lowercase
-p, --pipe
Pipe extracted files to stdout
-s, --single
Don't follow multi-part cabinet links
-q, --quiet
Suppress normal output
-v, --version
Show version

MULTI-PART CABINETS

For multi-part cabinet archives, only specify the first file. cabextract automatically locates and processes remaining parts.

CAVEATS

Can only extract archives, not create them. Use gcab to create cabinet files. Preserves internal directory structure, permissions, and dates.

SEE ALSO

gcab(1), unzip(1), 7z(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community