ZIPCMP(1)

πŸ“¦
version 1.11.4 Β· 3 versions
, in arch rolling, debian trixie, fedora 43, fedora 44, nixpkgs unstable, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ ZIPCMP ✨

okay so bestie, this is zipcmp from the General Commands Manual section, and it's literally the moment you find out if two zips are the same girlies or not πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

zipcmp [-ChipqsTtVv] archive1 archive2

πŸ’– DESCRIPTION πŸ’–

So what zipcmp does is it takes archive1 and archive2 β€” and those can be zip archives or directories, yes really β€” and it checks if they contain the same files. It compares the names, the uncompressed sizes, and the CRCs. That's the trio. That's the vibe check. 🫢

And listen: file order does not matter. Compressed size differences? Also ignored. We are NOT nitpicking those, periodt.

Here's the options lineup, they're all icons honestly:

  • -C β€” Checks the consistency of the archives. If an archive is inconsistent, or just straight up not valid according to the zip specification, you get an error. It's giving 🚨.
  • -h β€” Shows a short help message and dips. That's it, that's the whole thing.
  • -i β€” Compares names ignoring case distinctions. So README and readme are the same to it. lowercase girlboss behavior fr.
  • -p β€” Turns on paranoid checks πŸ‘€. It compares extra fields, comments, and other meta data. Important note bestie: this gets automatically disabled if one of the archives is a directory. Also, these checks get skipped for files where the data itself differs β€” no point being paranoid about a file that's already a different file, iykyk.
  • -q β€” Quiet mode. Like, the opposite of -v. Shhh 🀫.
  • -s β€” Prints a summary of how many files were added and how many were removed. The receipts πŸ“Š.
  • -T β€” Additionally compares the time stamps of the entries. Not just vibes β€” actual timestamps ⏰.
  • -t β€” Tests the zip files by comparing the contents to their checksums. Trust but verify, always πŸ’―.
  • -V β€” Displays version information and exits. Byeee πŸ‘‹.
  • -v β€” Verbose mode. Prints details about the differences to stdout. And here's the tea: this is the default πŸ”₯. So if you didn't ask for anything, you already got this.

🌈 EXIT STATUS 🌈

The numbers are the whole story here:

  • 0 β€” the two archives contain the same files. Slay πŸŽ€
  • 1 β€” they differ. Not slay, but informative πŸ’€
  • >1 β€” an error occurred. Something went wrong bestie 😭

🌸 SEE ALSO 🌸

Go be nosy, these are the friends:


🧚 HISTORY 🧚

zipcmp was added in libzip 0.6. An elder. A legend. We stan πŸ‘‘.


πŸ’œ AUTHORS πŸ’œ

Dieter Baron <dillo@nih.at> and Thomas Klausner <wiz@gatalith.at> β€” the two masterminds behind this whole thing, absolute main characters ✨


okay that's the page, sending you off with love from the Debian crew, dated March 15, 2024 β€” go compare some zips and have the best day πŸ’–πŸ¦‹πŸŒΈ
πŸ“¦ where this page comes from