apt-get for Cygwin?

后端 未结 7 1402
说谎
说谎 2020-12-22 15:30

Is there any apt-get-like program for use with Cygwin?

I already tried cyg-apt but when I try I get this error:

cyg-apt: do         


        
7条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-22 15:51

    You can do this using Cygwin’s setup.exe from Windows command line. Example:

    cd C:\cygwin64
    setup-x86_64 -q -P wget,tar,qawk,bzip2,subversion,vim
    

    For a more convenient installer, you may want to use the apt-cyg package manager. Its syntax similar to apt-get, which is a plus. For this, follow the above steps and then use Cygwin Bash for the following steps:

    wget rawgit.com/transcode-open/apt-cyg/master/apt-cyg
    install apt-cyg /bin
    

    Now that apt-cyg is installed. Here are few examples of installing some packages:

    apt-cyg install nano
    apt-cyg install git
    apt-cyg install ca-certificates
    

提交回复
热议问题