Trying to unzip file

42,422

Solution 1

Try to unzip it with p7zip.

You can install it via MacPorts or Homebrew with these commands, respectively:

sudo port install p7zip

brew install p7zip

Then, to unzip it, use:

7za x file.zip

Solution 2

If you're emotionally attached to using the unzip command; this also works:

$ brew tap homebrew/dupes
$ brew install unzip
$ brew link unzip --force

# Warning: unzip is keg-only and must be linked with --force
# Note that doing so can interfere with building software.
Share:
42,422

Related videos on Youtube

Pedro Cora
Author by

Pedro Cora

Updated on September 18, 2022

Comments

  • Pedro Cora
    Pedro Cora almost 2 years

    When trying to unzip a file, I ghet the following error:

    Archive:  file.zip
    skipping: file.bla            need PK compat. v4.5 (can do v2.1)
    

    Can any one help?

    • Admin
      Admin almost 11 years
      Try 7z x file.zip install info, I am pretty sure that error is related to password protected zips, which the built in doesn't really support.
  • user924
    user924 about 5 years
    @avernet then why Windows can do it and macOS not? Is macOS that bad?
  • Oleg Sapishchuk
    Oleg Sapishchuk about 4 years
    I did use on macOS only brew install p7zip and 7za x file.zip - all is working
  • xenoterracide
    xenoterracide over 3 years
    this helped me too, mine was need PK compat. v5.1 (can do v4.5) just for google index. I also used brew.
  • Criggie
    Criggie about 3 years
    as of 2021 "Error: homebrew/dupes was deprecated. This tap is now empty and all its contents were either deleted or migrated."