On macOS, knowing how to show package contents helps you verify downloads, troubleshoot apps, and inspect component files. These methods apply to app bundles, disk images, and compressed archives.
Use structured approaches and built-in tools so you can quickly reveal what is inside any package without installing third-party software.
| Method | When to Use | Interface Used | Preserves Original Package |
|---|---|---|---|
| Show Package Contents in Finder | Quick visual inspection of app bundles | Finder context menu | Yes |
| Open with Archive Utility | Compressed ZIP and TAR files | Double-click or Open With | Yes |
| Scripting, remote access, precise control | Command-line | Yes | |
| Inspect DMG and PKG Files | System and developer installers | Mount and archive tools | Mounted read-only |
Reveal App Package Contents on macOS
Every .app on macOS is actually a folder bundle containing binaries, resources, and metadata. You can open it like any folder once you enable the show package contents option.
Right-Click and Open
Control-click any application, choose Show Package Contents, and browse the structured folders for frameworks, helpers, and configuration files.
Extract Compressed ZIP and TAR Files
Distribution files often come as ZIP or TAR archives, which require extraction before you can review what is inside.
Double-Click Extraction
Double-click a ZIP on macOS to let Archive Utility unpack it into the same directory by default, preserving the folder structure.
Command-Line Extraction
Use unzip or tar in Terminal for more control, such as specifying a target path or viewing verbose output during extraction.
View DMG and PKG Installer Packages
Disk images and installer packages bundle software for system installation, and you can inspect their contents after mounting.
Mounting DMG Files
Opening a .dmg attaches a virtual volume, after which you can navigate into it to see applications, readmes, and package receipts.
Exploring PKG Archives
While designed for installation, you can expand a .pkg by recognizing it as a xar archive and using xar and cpio commands to list payloads.
Browse Files Inside Terminal
Terminal provides precise commands to list and extract contents, which is helpful when Finder context menus are not available.
Listing and Navigating
Commands like ls, tar, and unzip let you preview structures before deciding to extract, saving time and disk space.
Best Practices for Inspecting macOS Packages
- Use Show Package Contents in Finder for quick visual checks of app bundles.
- Double-click ZIP files to let Archive Utility extract them safely by default.
- Mount DMG images and explore before running installers to verify contents.
- Use Terminal commands like tar, unzip, and xar for scripted or detailed inspection.
- Always verify package origins and checksums when dealing with developer or system installers.
FAQ
Reader questions
How do I show package contents for an app in Finder?
Control-click the app, choose Show Package Contents, and macOS opens the internal bundle folder for inspection.
Can I extract a ZIP file without installing third-party tools on macOS?
Yes, double-click the ZIP file and Archive Utility will extract it automatically to the same location.
What should I do if a DMG file fails to mount when trying to show package contents?
Check Security & Privacy settings to allow the disk image, or open Terminal to mount it manually with hdiutil attach.
How can I see the contents of a PKG installer package on macOS?
Rename the .pkg to .cpio.gz, decompress it, and then extract the cpio archive to view the payload and scripts.