Installing packages in Cygwin

Default featured post

For those who don’t know what is Cygwin, I can simply define it as Linux command line or emulator for Windows. It provides the powerful Linux facilities on a lousy OS which is quite useful specifically for the time that I cannot install Linux on a machine with Windows OS because I am not owner of the system.

Anyhow long story short, it happened to me that I couldn’t install Linux on a lousy laptop, so I have decided to install Cygwin to enjoy feel of having Linux command line on Windows. I have searched the net and came up that the best option is Cygwin. Previously, I had experience with Cygwin but no so serious. This time I have installed it on the system instead of using VirtualBox because as I mentioned the laptop is not capable and powerful to even run Linux on VirtualBox and it is painfully slow which sometimes causes host OS to hang.

As I mentioned I have install Cygwin on the laptop and so far it is working fine, except that I have missed apt-get command to install any software packages flawlessly. With doing some research on the internet, I have found two approaches.

1- Running the setup.exe file again and use upgrade option to install new package.

2- Using package manager named apt-cyg which has the same usage with Debian apt-get (recommender approach).

If you select the option number 2 and interested to install new packages there, you can first go to this link and then follow its instruction which I put following,

$ lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg > apt-cyg
$ install apt-cyg /bin

Now you should be able to run apt-cyg like below,

$ apt-cyg install nano

You can check the list of available packages for Cygwin from the following link,

https://cygwin.com/cgi-bin2/package-grep.cgi