Archive Formats
Supported Formats
Excavate supports extraction from 10+ archive formats:
| Format | Extension(s) | Description |
|---|---|---|
CAB |
| Microsoft Cabinet files |
CPIO |
| Unix CPIO archives |
GZIP |
| GZIP compression |
MSI |
| Windows Installer packages |
RPM |
| Red Hat Package Manager |
7-Zip |
| 7-Zip archives |
TAR |
| Unix tape archives |
XAR/PKG |
| macOS packages |
XZ |
| XZ compression |
ZIP |
| Standard ZIP archives |
Format Guides
Select a format for detailed information:
-
CAB Format - Microsoft Cabinet files
-
MSI Format - Windows Installer packages
-
RPM Format - Red Hat packages
-
7-Zip Format - High compression archives
-
TAR Format - Unix tape archives
-
XAR/PKG Format - macOS packages
Format Detection
Excavate detects archive format by file extension:
# Extension determines format
Excavate::Archive.new('file.zip') # Uses ZipExtractor
Excavate::Archive.new('file.tar') # Uses TarExtractor
Excavate::Archive.new('file.msi') # Uses OleExtractorFor .exe files, Excavate tries 7-Zip first, then CAB:
# May be 7-Zip or CAB self-extracting
Excavate::Archive.new('installer.exe').extract(recursive_packages: true)See Also
-
Format Comparison - Compare format capabilities