Package Installer for Cygwin [apt-cyg].

Print Friendly and PDF
linux windows cygwin

After a longtime I was on my windows machine and had to make it feel more like my linux machine. So install the thing what everyone else does cygwin. Surpise my custom .bashrc and .vimrc worked without any issues. Good !! had the bashrc update vimrc update, we are back to linux .. like :)

My custom linux environment - howto.

Then I realized there is no way to install package from cygwin terminal. Then I found below script apt-cyg which is really nice.

Package Installer - apt-cyg


apt-cyg is a simple script, copy below script to home directory on cygwin

Here is the link

Execute below command.

install apt-cyg /bin

Now we can use - Example use of apt-cyg

apt-cyg install nano
apt-cyg install lynx


└─▪ apt-cyg install lynx
Installing lynx
--2016-09-28 12:49:39--
Resolving (
Connecting to (||:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1746879 (1.7M) [application/octet-stream]
Saving to: lynx-2.8.7-2.tar.bz2

lynx-2.8.7-2.tar.bz2           100%[==================================>]   1.67M   181KB/s    in 12s

2016-09-28 12:49:52 (146 KB/s) - lynx-2.8.7-2.tar.bz2 saved [1746879/1746879]

lynx-2.8.7-2.tar.bz2: OK
Package lynx requires the following packages, installing:
bash cygwin libiconv2 libintl8 libncursesw10 libopenssl100 zlib0
Package bash is already installed, skipping
Package cygwin is already installed, skipping
Package libiconv2 is already installed, skipping
Package libintl8 is already installed, skipping
Package libncursesw10 is already installed, skipping
Package libopenssl100 is already installed, skipping
Package zlib0 is already installed, skipping
Running /etc/postinstall/
Package lynx installed

Now we are good. !!!

Written on September 29, 2016