This is the mail archive of the
mailing list for the Cygwin project.
Cygwin Setup - Choose Best Mirror Automatically for Automated / Silent Installs
- From: OwN-3m-All <own3mall at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 17 Nov 2016 18:21:01 -0700
- Subject: Cygwin Setup - Choose Best Mirror Automatically for Automated / Silent Installs
- Authentication-results: sourceware.org; auth=none
Is there a way to have the Cygwin setup utility pick a valid mirror
automatically from the list it downloads if the setup is run with the
setup-x86_64.exe --quiet-mode --root "C:\dir" --local-package-dir
"C:\dir\cygTemp" --packages "apache2"
If I run the setup utility with the parameters above, the user is
prompted to select a mirror. This would be fine in itself if after
doing so the setup utility continued to operate in the quiet mode and
downloaded the selected packages (including dependencies for them)
automatically. Instead, what happens is that the user selects a
mirror, and then the dialog is shown to confirm the packages even
though the --quiet-mode parameter was passed in. So basically, the
way it works right now is not very consistent. It should either
prompt a user to pick a mirror and then install packages quietly
without a confirmation dialog showing the packages that are going to
be installed, or a mirror should be automatically picked (select the
first one from the list the setup utility downloads), and the setup
should then continue quietly.
I'm trying to automate this as best as possible, and the only way to
do so right now is to specify the mirror the setup utility uses by
using something similar to:
setup-x86_64.exe --site "http://cygwin.mirror.constant.com/"
--quiet-mode --root "C:\dir" --local-package-dir "C:\dir\cygTemp"
The problem with this is that it appears that mirror won't always work
with each version of Windows (at least I think that's the case based
on some strange behavior I'm seeing).
Is there a way to have the setup automatically pick a site from the
list of mirrors it downloads to use?
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple