public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Cygwin Setup - Choose Best Mirror Automatically for Automated / Silent Installs
@ 2016-11-18  3:20 OwN-3m-All
  2016-11-18  3:41 ` Andrey Repin
  0 siblings, 1 reply; 18+ messages in thread
From: OwN-3m-All @ 2016-11-18  3:20 UTC (permalink / raw)
  To: cygwin

Hi All,

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
following options:

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"
--packages "apache2"

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?

~
Thanks
OwN

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2016-11-21  8:26 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-18  3:20 Cygwin Setup - Choose Best Mirror Automatically for Automated / Silent Installs OwN-3m-All
2016-11-18  3:41 ` Andrey Repin
2016-11-18  6:04   ` OwN-3m-All
2016-11-18  6:11     ` Brian Inglis
2016-11-18  6:18       ` OwN-3m-All
2016-11-18  6:20         ` OwN-3m-All
2016-11-18  7:32           ` Andrey Repin
2016-11-18 12:59           ` Brian Inglis
2016-11-20 19:19           ` Achim Gratz
2016-11-21 13:40             ` OwN-3m-All
2016-11-21 16:17               ` Corinna Vinschen
2016-11-18  6:35         ` Andrey Repin
2016-11-18  7:13     ` Andrey Repin
2016-11-19  0:15     ` Achim Gratz
2016-11-19  2:08       ` OwN-3m-All
2016-11-19 13:42         ` OwN-3m-All
2016-11-19 14:41           ` Brian Inglis
2016-11-20 19:01           ` Jon Turney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).