Q:

Is there a CLI utility to compute the same CRC as used in ZIP files?

# Create random file    
$ dd if=/dev/urandom /of=./test.dat bs=1K count=1

# Zip it 
$ zip test.zip test.dat

# Dump contents for ZIP-computed CRC
$ unzip -v test.zip
Archive:  test.zip
Length   Method    Size  Cmpr    Date    Time   CRC-32   Name
--------  ------  ------- ---- ---------- ----- --------  ----
    1024  Stored     1024   0% 2018-12-09 17:42 1f197320  test.dat
--------          -------  ---                            -------
    1024             1024   0%                            1 file

# compute CRC with coreutil's cksum
$ cksum test.dat
283837118 1024 test.dat

# convert to hex
$ printf "%08x" 283837118
10eb02be

TL;DR: cksum doesn't use the same CRC algorithm as ZIP.    

A:

Yes, you can use the crc32 command which is available in the Archive::Zip Perl module. On Debian and derivatives, install libarchive-zip-perl to get it.

