windows 如何手动安装旧的 cygwin 软件包?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/460744/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do I manually install an old cygwin package?
提问by Salim Fadhley
A project I am working on requires an old version of SLAPD (the LDAP server) and must run on Windows, hence I am using cygwin packages:
我正在处理的项目需要旧版本的 SLAPD(LDAP 服务器)并且必须在 Windows 上运行,因此我使用的是 cygwin 包:
I've found a binary package of slapd version I need 2.2.x here:
我在这里找到了我需要 2.2.x 的 slapd 版本的二进制包:
http://www.mirrorservice.org/sites/sourceware.org/pub/cygwin/release/...
http://www.mirrorservice.org/sites/sourceware.org/pub/cygwin/release/...
How do I manually install it in cygwin? It does not seem to be a package-manager file format (like an RPM or a Deb), but is there a tool to install it for me?
如何在 cygwin 中手动安装它?它似乎不是包管理器文件格式(如 RPM 或 Deb),但是否有工具可以为我安装它?
FYI, I'm operating behind a corporate firewall that prevents me from viewing the main cygwin site (including the documentation), so please nobody tell me to RTFM - I wish I could!
仅供参考,我在公司防火墙后面操作,阻止我查看主要的 cygwin 站点(包括文档),所以请不要告诉我 RTFM - 我希望我能!
Thanks
谢谢
采纳答案by Paulo Lopes
If you are using the cygwin package installer to install this package, usually if you select to view the full info and scroll to the package you need you will see some info about the version.
如果您使用 cygwin 软件包安装程序来安装此软件包,通常如果您选择查看完整信息并滚动到您需要的软件包,您将看到有关版本的一些信息。
Now if you click on the version number you will see that it changes from the oldest in the repository to the current. If your repository has the version you need then just finish the wizard.
现在,如果您单击版本号,您将看到它从存储库中最旧的更改为当前版本。如果您的存储库具有您需要的版本,则只需完成向导即可。
回答by Martin Dorey
If you need an older version, the Cygwin time machinemight help. To use it, I had to invoke setup.exe from the command line, giving it the --no-verify
/-X
option and it still wouldn't let me downgrade the "cygwin" package itself but at least it is, albeit very slowly, allowing me to install the version I wanted to test as a parallel installation.
如果您需要旧版本,Cygwin 时间机器可能会有所帮助。要使用它,我必须从命令行调用 setup.exe,给它--no-verify
/-X
选项,它仍然不会让我降级“cygwin”包本身,但至少它是,尽管速度很慢,允许我安装我想作为并行安装测试的版本。
回答by basin
Some cygwin mirrors keep old package files, for example, http://mirror.isoc.org.il/pub/cygwin/You can use Sonatype nexus to mirror an existing cygwin repository, but provide your own setup.ini .
一些 cygwin 镜像会保留旧的包文件,例如,http://mirror.isoc.org.il/pub/cygwin/您可以使用 Sonatype nexus 来镜像现有的 cygwin 存储库,但提供您自己的 setup.ini 。
Copy the already downloaded repo content to c:\progs\nexus\sonatype-work\nexus\storage\mirror.isoc.org.il-pub-cygwin\
Put your own setup.ini and setup.bz2 there.
Start setup.exe with --no-verify
Paste
将已经下载的 repo 内容复制到 c:\progs\nexus\sonatype-work\nexus\storage\mirror.isoc.org.il-pub-cygwin\
把你自己的 setup.ini 和 setup.bz2 放在那里。
使用 --no-verify
Paste 启动 setup.exe
http://localhost:8081/nexus/content/repositories/mirror.isoc.org.il-pub-cygwin/
into the mirror selection box and click "Add"
进入镜像选择框并点击“添加”