1、下载地址 https://github.com/transcode-open/apt-cyg 2、apt-cyg文件放入/usr/local/bin 3、修改/home/当前用户/.profile文件,将/usr/local/bin加入环境变量 export PATH=$PATH:/usr/local/bin 4、设置下载源 apt-cyg mirror https://mirrors.aliyun.com/cygwin...
查看apt-cyg文件脚本源码,可以发现脚本实际是通过相应函数一一实现这15个操作,并且apt-cyg和setup共用了一套配置文件。 mirror apt-cyg mirror [url]可以查看/设置镜像源地址。如果未给url参数,apt-cyg查找/etc/setup/setup.rc文件中last-mirror项并打印出来,以此作为镜像源地址;如果给定了url参数,则将/etc/setup/...
也可以把默认的缓存和下载站点存到文件中,编辑apt-cyg,找到68行: #mirror=ftp://mirror.mcs.anl.gov/pub/cygwin #cache=/setup mirror=http://mirrors.163.com/cygwin cache=/cygdrive/d/downloads/cygwin 1. 2. 3. 4. 当然,PHP 在 cygwin的官方源中是不存在的,我们可以使用cygwinports提供的源: $ apt...
apt-get安装与配置 从https://github.com/transcode-open/apt-cyg/releases下载V1版本的.zip文件,解压后将apt-cyg拷贝到cygwin的安装目录的bin目录下。 是要把目录下的文件全部都拷到bin目录,不是把文件夹拷过去 配置apt-cyg的镜像源 apt-cyg mirror http://mirrors.163.com/cygwin 更新源 apt-cyg update ap...
mirror=$(awk' /last-mirror/{ getline print$1 } ' /etc/setup/setup.rc) mirrordir=$(sed' s/%2fg s:%3ag ' <<< "$mirror") mkdir-p"$cache/$mirrordir/$arch" cd"$cache/$mirrordir/$arch" if[-esetup.ini] then return0
chmod+x/bin/apt-cyg#使用当前源安装telnetapt-cyg install inetutils 其他命令: #查看当前源apt-cyg mirror#配置http://mirrors.163.com/cygwin/为当前源apt-cyg mirror http://mirrors.163.com/cygwin#更新源apt-cyg update#删除telnetapt-cygremoveinetutils...
apt-cyg安装源为ftp://mirror.mcs.anl.gov,设置为网易镜像源。 apt-cyg update --mirror http://mirrors.163.com/cygwin/ 使用apt-cyg安装软件: apt-cyg update #更新源 apt-cyg install ping -u #使用参数u不必每次都更新源 Working directory is /setup ...
Support multi mirrors: Cygwin setup can use multi mirrors. They are recorded at last-mirror section in '/etc/setup/setup.rc'. It's useful for usingCygwinports. Support upgrade: But maybe, busy resources can not be upgraded, and rebase problem will happen. Cygwin setup resolves by replacing...
They are recorded at last-mirror section in '/etc/setup/setup.rc'. It's useful for using Cygwinports. Support upgrade: But maybe, busy resources can not be upgraded, and rebase problem will happen. Cygwin setup resolves by replacing them at next reboot. Support dependency check for remove ...
--mirror, -mset mirror --cache, -cset cache --category, -Cinstall packages from specified category (mostly for using with --fetch (for pre-fetching)) --fetchfetch files only (not install) --file, -fread package names from file