Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

It's hard to believe, but there's no zip in my cygwin (I can't recall excluding any packages; on the opposite, I added a lot of stuff).

  • How can I install it?

The search page returns "zip", but typing "zip" in the cygwin-setup search window shows "bzip2" and "gzip" only, no "zip". I wouldn't be surprised if "zip" was contained in these packages, but while both "bzip2" and "gzip" commands work, I'm getting "zip: command not found".


My cygwin still pretends there's no zip at all:

> cygcheck -vf /usr/bin/zip
> type zip
bash: type: zip: not found
> /usr/bin/zip
bash: /usr/bin/zip: No such file or directory

And there's no "zip" package in my setup:

enter image description here

share|improve this question

migrated from stackoverflow.com Jan 30 '13 at 22:39

This question came from our site for professional and enthusiast programmers.

1  
Which installation mirror are you using? What happens if you try a different one? –  Keith Thompson Jan 30 '13 at 1:20
    
@Keith Thompson: No idea... I did "Download Without Installing" and then "Install from local directory" and don't know which one it was. Now I selected a new one and found the package. I really wonder why cygwin lists incomplete mirrors. I'd expect to get at least a complete list of all packages (if not the packages themselves). –  maaartinus Jan 30 '13 at 2:27
    
Look in your local package directory (which you would have specified when you first ran setup.exe). There should be a subdirectory corresponding to each mirror you've used. If you find that there's an incomplete mirror, you might want to tell both the Cygwin folks and the owners of the mirror about the problem. –  Keith Thompson Jan 30 '13 at 2:44
1  
Sounds like you didn't download the zip package when you did the "Download without installing" step. When you go to install from that download, you'll not find the zip package, because it wasn't downloaded. –  me_and Jan 30 '13 at 21:40
    
I'm with @me_and: when you separate the download and install steps, the install step shows you only the packages you downloaded. You really really don't want Cygwin setup.exe to download everything. A full Cygwin mirror is something like 21 GB! –  Warren Young Jan 30 '13 at 22:33
show 2 more comments

1 Answer

up vote 2 down vote accepted

The package itself is called zip. The page you link to is exactly it, so I'm not sure why it wouldn't be working for you. http://cygwin.com/packages/zip/

$ which zip
/usr/bin/zip

$ cygcheck -vf /usr/bin/zip
/usr/bin/zip: found in package zip-3.0-11
share|improve this answer
2  
Also remember that unzip is a different package, called unzip –  Hemal Pandya Jan 29 '13 at 22:26
    
@Costa: This sounds all logical, but see my question update. –  maaartinus Jan 29 '13 at 23:18
    
After choosing a different mirror, it worked. Actually it was the comment by Keith Thompson which helped me most, but your answer is correct and helpful, too. –  maaartinus Jan 30 '13 at 2:31
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.