Cygwin - How would I find the Cygwin's version which has been installed on my machine? (Win Vista)
To find the version of the Cygwin DLL installed, you can use uname -r as you would for a Unix kernel. As the Cygwin DLL takes the place of a Unix kernel, you can also use the Unix compatible command: head /proc/version , or the Cygwin specific command: cygcheck -V .
If cygwin complains with windows installer standards then when you install it you should be able to find a registry entry for this program. You should check the registry for something like localmachine/software/cygwin.... this validation can be done using RegistryKey class in c#.
The installation directory (by default, c:\cygwin) is the root of the Unix-like file system, which contains bin, etc, home, tmp, and usr directories as would be found on a GNU/Linux or other Unix system. Within home will be one or more subdirectories, each allocated to a Windows user.
Cygwin is a collection of open source tools that allows Unix or Linux applications to be compiled and run on a Microsoft Windows operating system (OS) from within a Linux-like interface. Cygwin offers users a Linux-like experience in a Windows environment.
With the uname
utility, as on other POSIX systems.
uname -r
If you want to detect if you're running the 32 bit or 64 bit version, the -m switch will tell you:
uname -m
"i686" for the 32-bit version, "x86_64" if it's 64-bit.
uname -a
..gives you all the information at once. Check man uname
for details.
(This is also answered in How do I tell whether my cygwin installation is 32 or 64 bit?)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With