Personal tools
You are here: Home Knowledge Finding which cygwin package contains a particular file

Finding which cygwin package contains a particular file

I often need to install a cygwin package to get a single file, but I can't find which package I need. This article explains how.

The other day I needed to install the cygwin "strings" command.  No problem, I'll just run the cygwin installer, grab the "strings" package, and I'll be all set.  But not so fast.  There is no "strings" package; "strings" is part of some other package.  But which one?  I finally stumbled upon the cygwin package-grep facility.  By using the URL:

http://cygwin.com/cgi-bin2/package-grep.cgi?grep=strings.exe

I was able to determine that strings.exe is in the "binutils" package.  A few minutes later, I was happily using the "strings" command.

I haven't found a user interface to package-grep, so I just build the URL by hand.

Update on 2009-11-4

Since I originally wrote this article, cygwin has developed the cygcheck utility. Among many other nice features, cygcheck provides a command line interface similiar to package-grep.cgi. For example:

cygcheck -p strings.exe

This will tell you that strings.exe is in binutils. If you know that it's an executable you're looking for, it's best to add the ".exe" extension. If you look for just "strings", you get a list of 144 packages that contain a file with the word "strings" in the filename.

In many ways, cygcheck is similar to the rpm and yum commands from Fedora or RedHat Linux, or apt-get from Ubuntu or Debian Linux.


If you enjoyed this article, we invite you to learn more about how you can become a high achieving computer professional.

 

Document Actions
Technology Questions or Problems?

Get Technology Support from Experienced Pros

Professional, prompt service. Competitive pricing. Practical, real-world solutions that save you time and money.

Learn more...

Computer Pros

Discover
How To Stop
The Competition From Eating Your Lunch


Read more...

« September 2010 »
September
SuMoTuWeThFrSa
1234
567891011
12131415161718
19202122232425
2627282930
 
x Computer Pros - Interstitial Page with Flash

Computer Pros:
Discover How To Stop
The Competition From
Eating Your Lunch

Welcome and thanks for stopping by!

Join Our Free Online Study Group And
You Will Learn How To:
 • Become an "In Demand" IT Pro
 • Earn More - Because You Deserve It
 • Improve Your Job Hunting Skills
 • Find Out What Employers and Clients Want
No Obligation - Cancel Anytime
Name
Email