
One of the greatest challenges in utilizing Cygwin is using the setup GUI program to view, install or uninstall packages. The syntax “apt-cyg”, can helps in installing and removing Cygwin packages. Here is how to install Cygwin packages from the command line using “apt-cyg”.
Note: Before proceeding with these steps, test if you can run these commands on the fly, (to install and uninstall). If this does not work, then you can proceed with the following steps below.
To install “apt-cyg”, first install the subversion and wget packages using the setup program as shown below
$ wget https://raw.githubusercontent.com/transcode-open/apt-cyg/master/apt-cyg
$ install apt-cyg /bin


You are now ready to use apt-cyg, which is actually a Bash shell script.
- apt-cyg update
- apt-cyg show
- apt-cyg install krb5-workstation
- apt-cyg remove
Here is an example below on how to install packages via apt-cyg

I hope you found this blog post on How to install Cygwin packages from the command line helpful. If you have any questions, please let me know in the comment session. I welcome you to follow me on Twitter and Facebook.