Windows Server

How to install Cygwin packages from the command line

install Cygwin packages from the command line

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
install subversion and wget packages in command line
install Cygwin packages from the command line

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

Package is already installed

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.

Subscribe
Notify of
guest

2 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Peter K
Peter K
2 years ago

Approval! Thank you!

2
0
Would love your thoughts, please comment.x
()
x