XZ Archive
ArchivesXZ stores compressed streams; TAR.XZ combines TAR packaging with XZ compression. Large dictionaries may require substantial decompression memory, independently of compressed size.
- What it is used for
- Compression of data or TAR archives
- What the file contains
- Binary data
All sections, questions and sources
Content reviewed: · Editor:Kai
Opening steps
Choose your environment or purpose to see its steps.
Menu labels and support vary by app, OS and version. Preserve the original before making changes.
Troubleshooting by symptom
- Memory failure: inspect decompression requirements and configured limits.
- Unsupported format: distinguish XZ from older LZMA formats and use a supported tool.
- Truncation error: verify transfer completion and published size/checksum.
- Memory-limit error: inspect requirements and tool limits; it need not indicate damage.
- Only decompressed TAR.XZ once: inspect both compression and TAR layers.
- Renaming to LZMA fails: distinguish XZ from legacy LZMA containers.
XZ → original data / ZIP
- Decompress a copy and extract any nested archive separately.
- If needed, package as ZIP and compare contents/layout.
- Inspect resulting folders, file counts and sizes. When repacking, verify the new listing and a test extraction.
Renaming does not change compression; check preservation of metadata in the destination format.
Separating resource limits from damage
Some XZ settings need substantial decompression memory. Read the error and inspect a suitable environment.
Do not remove limits blindly; check available resources and publisher requirements.
Source for these steps:XZ Utils · xz command manual
After decompression
Move to the appropriate next checks: TAR listing/destination, SQL database dialect or IMG disk format.
When repacking, compare counts and contents and retain the original XZ’s integrity information.
Source for these steps:XZ Utils · xz command manual
Related-format differences
| Format | Main role | Selection notes |
|---|---|---|
| XZ | XZ compression layer | Check memory and storage |
| TAR.XZ | Compressed TAR | Extract TAR after decompression |
| LZMA | Different compressed container | Renaming does not convert |
Handling and security
Inspect origin, output size and destination; do not automatically run extracted programs/scripts.
Questions and answers
Is XZ a folder archive?
It normally compresses a stream and may wrap TAR.
Why can a small XZ fail to decompress?
Dictionary and memory requirements can still be large.
Can I rename it 7z?
No; decompress and recompress it properly.
Does XZ bundle files?
It typically compresses data such as TAR; distinguish compression from bundling.
Does a successful test prove safety?
It checks compressed-data integrity. Assess content and origin separately.
Format facts: name, steward and MIME type
- Formal name
- XZ compressed stream
- Steward / specification
- Tukaani Project
- MIME type
- Depends on the producer or server; an extension alone does not establish a MIME type.
Primary and official sources
- Project documentationXZ Utils
Publisher documentation for XZ tools.
Tukaani Project · Link checked: - Software documentation7-Zip — Supported formats
Lists supported archive and disk-image formats.
Igor Pavlov / 7-Zip · Link checked: - Project documentationxz command manual
Listing, integrity tests, decompression and memory limits.
XZ Utils · Link checked: