Linux Commands Examples

A great documentation place for Linux commands


program to extract files from Microsoft cabinet (.cab) archives


cabextract [-ddir] [-f] [-Fpattern] [-h] [-l] [-L] [-p] [-q] [-s] [-t] [-v] cabinet files ...

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!


do_installdev usr/bin/cabextract toolchain
depends cabextract &&
depends wine &&
suggest_depends xmessage "" "" "for basic GUI"
cd ~/.wine/drive_c/steam
cabextract SteamInstall.msi
wine SteamService.exe
if ! which cabextract; then
echo "cabextract has not been installed!"
exit 1
# Setup the registry
# Install ITSS.DLL
cabextract -d htmlhelp htmlhelp.exe
cabextract -d hhupd hhupd.exe
cabextract -d hhupd htmlhelp/hhupd.exe


cabextract is a program that un-archives files in the Microsoft cabinet file format (.cab) or any binary file which contains an embedded cabinet file (frequently found in .exe files).

cabextract will extract all files from all cabinet files specified on the command line.

To extract a multi-part cabinet consisting of several files, only the first cabinet file needs to be given as an argument to cabextract as it will automatically look for the remaining files. To prevent cabextract from extracting cabinet files you did not specify, use the -s option.


A summary of options is included below.

-d dir

Extracts all files into the directory dir.


When testing or extracting cabinet files, corrupted MSZIP blocks will be ignored. A warning will be printed if a corrupted MSZIP block is encountered.

-F pattern

Only files with names that match the shell pattern pattern shall be listed, tested or extracted. On non-GNU systems, this match may be case-sensitive.


Prints a page of help and exits.


Lists the contents of the given cabinet files, rather than extracting them.


When extracting cabinet files, makes each extracted file’s name lowercase.


Files shall be extracted to standard output.


When extracting cabinet files, suppresses all messages except errors and warnings.


When testing, listing or extracting cabinets which span multiple files, only cabinet files given on the command line shall be used.


Tests the integrity of the cabinet. Files are decompressed, but not written to disk or standard output. If the file successfully decompresses, the MD5 checksum of the file is printed.


If given alone on the command line, prints the version of cabextract and exits. Given with a list of cabinet files, it will list the contents of the cabinet files.

see also



This manual page was written by Stuart Caie <kyzer[:at:]4u[:dot:]net>, based on the one written by Eric Sharkey <sharkey[:at:]debian[:dot:]org>, for the Debian GNU/Linux system.

How can this site be more helpful to YOU ?

give  feedback