Is there a tool in the Cygwin package similar to apt-get
on Debian or yum
on redhat that allows me to install components from the command line?
相关问题
- softlinks atime and mtime modification
- Get unexpanded argument from bash command line
- Include and Execute EXE in C# Command Line App
- Batch - Set variables in for loop
- Rails gem update not working (version 4.1.1 to 4.2
相关文章
- Compile and build with single command line Java (L
- How to update command line output?
- How to execute another python script from your scr
- git.exe: error while loading shared libraries: ?:
- ffmpeg run from shell runs properly, but does not
- Python file keyword argument?
- Interactively merge files tracked with git and unt
- Lauch default editor (like 'webbrowser' mo
Usually before installing a package one has to know its exact name:
Cygwin's setup accepts command-line arguments to install packages from the command-line.
e.g.
setup-x86.exe -q -P packagename1,packagename2
to install packages without any GUI interaction ('unattended setup mode').(Note that you need to use
setup-x86.exe
orsetup-x86_64.exe
as appropriate.)See http://cygwin.com/packages/ for the package list.
There is no tool specifically in the 'setup.exe' installer that offers the functionality of apt-get. There is, however, a command-line package installer for Cygwin that can be downloaded separately, but it is not entirely stable and relies on workarounds.
apt-cyg: http://github.com/transcode-open/apt-cyg
Check out the issues tab for the project to see the known problems.
Dawid Ferenczy's answer is pretty complete but after I tried almost all of his options I've found that the Chocolatey’s cyg-get was the best (at least the only one that I could get to work).
I was wanting to install
wget
, the steps was this:Then:
First, download installer at: https://cygwin.com/setup-x86_64.exe, then:
e.g.
For a more convenient installer, you may want to use
apt-cyg
as your package manager. Its syntax similar toapt-get
, which is a plus. For this, follow the above steps and then use Cygwin Bash for the following stepsNow that
apt-cyg
is installed. Here are few examples of installing some packages