If your image is compressed as a .gz file rather than a .zip , you can use zcat or gunzip in a similar fashion.
The following write-up explains how to use the dd command to handle .zip or compressed disk images, specifically focusing on writing them directly to a drive. Direct Write-up: Working with dd and Compressed Images dd.zip
: Extracts the file to standard output (stdout) instead of creating a file on disk. If your image is compressed as a
: Displays a real-time progress bar of the operation. 2. Alternative: Using gzip or zcat : Displays a real-time progress bar of the operation
: Sends that extracted data directly into the next command.
unzip -p path/to/image.zip | sudo dd of=/dev/sdX bs=4M status=progress
: Sets the block size to 4 megabytes to speed up the writing process.