Command: cabext (cabextract)

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

Syntax:

  cabext [options] [-d dir] [-f] <

Options:

  -d  --directory
        Extracts all files into the given directory
  -e encoding
        Specify the character encoding of filenames inside the cabinet
        files. This is only needed if you find cabinet files with garbled
        filenames; most software creates CAB files with either ASCII or
        UTF8 filenames. The list of supported encodings is given by
        the command "iconv -l".
  -f  --fix
        Corrupted cabinet files will be 'fixed' to salvage whatever is
        possible from them. File entries with bad folders or names will
        be skipped rather than rejecting the entire cabinet file.
        Impossible file lengths will be truncated to extract as much as
        possible, including when you're missing later files in a cabinet
        set. Corrupted MSZIP blocks and failed block checksums will be
        ignored. Warnings will be printed if any of these conditions are
        met.
  -F  --filter
        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.
  -h  --help
        Prints a page of help and exits.
  -i  --interactive
        Prompt whether to overwrite existing files.
  -k  --keep-symblinks
        Follow symlinked files/dirs when extracting.
  -l  --list
        Lists the contents of the given cabinet files, rather than
        extracting them.
  -L  --lowercase
        When extracting cabinet files, makes each extracted file's name
        lowercase.
  -n  --no-overwrite
        Don't overwrite (skip) existing files.
  -p  --pipe
        Pipes extracted files to standard output.
  -q  --quiet
        When extracting cabinet files, suppresses all messages except
        errors and warnings.
  -s  --single
        When testing, listing or extracting cabinets which span multiple
        files, only cabinet files given on the command line shall be used.
  -t  --test
        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.
  -v  --version
        If given alone on the command line, prints the version of cab-
        extract and exits. Given with a list of cabinet files, it will
        list the contents of the cabinet files.

Comments:

  CABEXT 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). CABEXT 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 CABEXT as it
  will automatically look for the remaining files. To prevent CABEXT
  from extracting cabinet files you did not specify, use the -s option.
  For more information see:
  https://gitlab.com/FreeDOS/archiver/cabext/-/tree/master/DOC/CABEXT?
  ref_type=heads OR:
  https://www.cabextract.org.uk/

Examples:

  Extracting files from a cabinet file:
    $ cabext wibble.cab
  Extracting files from an executable which contains a cabinet file:
    $ cabext wibble.exe
    [cabext will automatically search executables for embedded
    cabinets]
  Extracting files from a set of cabinet files; wib01.cab, wib02.cab, ...:
    $ cabext wib01.cab
    [cabext will automatically get the names of the other files]
  Extracting files to a directory of your choice (in this case, 'boogie'):
    $ cabext -d boogie wibble.cab
    [cabext will create the directory if it does not already exist]
  Listing files from a cabinet file:
    $ cabext -l wibble.cab
  Testing the integrity of a cabinet file, without extracting it:
    $ cabext -t wibble.cab

See also:

  7zdec
  arj
  bzip2
  gzip
  lpq1
  lzip
  lzma
  lzop
  p7zip
  slicer
  tar
  unzip
  zip
  zoo

  This manual page was written by Stuart Caie kyzer@cabex-
  act.org.uk, based on the one written by Eric Sharkey
  sharkey@debian.org, for the Debian GNU/Linux system.
  Help version 2024 W. Spiegl.

  This file is derived from the FreeDOS Spec Command HOWTO.
  See the file H2Cpying for copying conditions.