THE FILE FIELD GUIDE
.tgz

Gzip-compressed Tar Archive

Archives

TGZ commonly abbreviates .tar.gz: gzip wraps a tar archive. Inspect contents and extract into a new directory.

Main use
Bundle files with tar and compress with gzip
Data type
Binary data
All sections, questions and sources

Content reviewed: · Editor:Kai

Opening steps

Choose your environment or purpose to see its steps.

A tar/gzip-capable tool

Preserve the original and inspect a working copy in a compatible application.

  1. List the archive contents in a compatible tool.
  2. Ensure both gzip and tar support.
  3. Extract to a new destination.
Inspect the received file and its requirements

Establish dependencies and settings before proceeding.

  1. Identify source release versus data backup.
  2. Check expanded size and structure.
  3. Check handling of hidden files and links.

Menu labels and support vary by app, OS and version. Preserve the original before making changes.

Troubleshooting by symptom

  • Only tar appears: extract the tar layer too.
  • Corruption: verify download completion/checksum.
  • Permission error: choose a writable folder.
  • Name differences: inspect OS filename/case rules.

TGZ → extracted data / another archive

  1. Extract both layers with compatible tooling; rearchive if needed.
  2. Reopen the output and check it against the preservation points in this guide before handoff.

Repackaging can change permissions or symbolic-link information.

Compression versus bundling

Gzip compresses; tar bundles files. Processing only gzip leaves the tar archive.

Source for these steps:GNU · How to Extract Members from an Archive / GNU · GNU gzip overview

Worked example: checks before handoff

Example: extract a source release into a new folder and read README before deciding on build steps.

Source for these steps:GNU · How to Extract Members from an Archive / GNU · GNU gzip overview

Related-format differences

Related-format differences
Format / methodPurpose and preserved information
.tgzBundle files with tar and compress with gzip
GZ / TARCompressed stream / bundled archive.
TGZ → extracted data / another archiveRepackaging can change permissions or symbolic-link information.

Handling and security

Inspect source/scripts before execution.

Questions and answers

Different from tar.gz?

It commonly denotes the same combination.

Does extraction install software?

Extraction is separate from installation.

Can I inspect contents first?

Use a listing operation.

Format facts: name, steward and MIME type
Formal name
Gzip-compressed Tar Archive
Steward / specification
GNU
MIME type
Consult the producer or delivery system. The extension alone does not establish a MIME type.

Primary and official sources