cygwin - 如何使用 apt-cyg 添加存储库

标签 cygwin apt-get

在 Ubuntu 中,你可以像这样运行一行

sudo apt-add-repository ppa:swi-prolog/stable

如何使用 apt-cyg在 Cygwin 窗口中?

最佳答案

您可以运行 apt-cyg -m 指定镜像/存储库的选项。
所以这就是我从 Cygwinports 存储库安装 PHP 所做的。

apt-cyg update -m ftp://ftp.cygwinports.org/pub/cygwinports

然后我就可以从那个 repo 安装软件包了。
apt-cyg install php

关于cygwin - 如何使用 apt-cyg 添加存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22411162/

相关文章:

linux - 使用 apt-get 未完成的安装文件

Ubuntu apt-get 无法获取包

Cygwin 上的 Git : Fails to add the host to the list of known hosts

windows - 如何编写批处理(Windows)来启动Cygwin(mintty.exe),然后执行Python脚本?

cygwin - 如何修复 cygwin 的自动颜色?

java - 如何从 Cygwin bash shell 启动在 Eclipse 中开发的 java CLI 程序?

apt-get - 安装 ansible 2.6 或更早版本

linux - 在 linux 上安装多个包(比如 pip install -r requirements.txt)

docker - apt-get在基于Debian和Ubuntu的Docker镜像中失败

c++ - 无法启动,因为缺少 cygwin1.dll...目标是没有依赖项