public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Brian Inglis <Brian.Inglis@SystematicSw.ab.ca>
To: cygwin@cygwin.com
Subject: Re: Unattended install "remembers" the download option
Date: Sat, 05 Nov 2016 18:51:00 -0000	[thread overview]
Message-ID: <21828fef-9cb4-7365-aba3-055a0260f723@SystematicSw.ab.ca> (raw)
In-Reply-To: <D4436FF9.D3B2%rrdrake@sandia.gov>

On 2016-11-05 11:33, Drake, Richard R wrote:
> On Sat, 5 Nov 2016 09:14:40 -0700 Wayne Davison wrote:
>> On Sat, Nov 5, 2016 at 7:01 AM, Drake, Richard R wrote:
>>> What is really curious is where this option is being stored. If I
>>> knew that, then maybe I could remove that setting so it would
>>> revert to the default setting.
>> Look in /etc/setup/setup.rc. I bet the line following "last-action"
>> is just "Download" in your file. Mine is "Download,Install" (after
>> a tab).
> Thanks Wayne, that was the clue I needed.
> Turns out cygwin will use the Windows Registry to store previous
> install locations, and in that previous location I had the "download
> only" option set. The setup program used the Registry to find a
> previous install location (/etc/setup/setup.rc file) and used that to
> populate some options.

To easily check the registry for all your installations, try:

	$ ls -R /proc/reg*/HKEY*/SOFTWARE/Cygwin

to see the useful content:

	$ find /proc/reg*/HKEY*/SOFTWARE/Cygwin -type f | xargs head; echo

to get the settings from /etc/setup/setup.rc for: last-cache, last-mirror,
last-action, net-method (Direct or proxy):

	$ sed "0,/^$SETTING/d;s/^\s\+//;q" /etc/setup/setup.rc

to change it, at your own risk, type carefully:

	$ sed -i "/$SETTING/{n;s/^\s\+.*/\t$NEW/}" /etc/setup/setup.rc

I picked this up while forking apt-cyg at:
	https://github.com/BrianInglis/apt-cyg
with three pull requests against the original at:
	https://github.com/transcode-open/apt-cyg
to:
* fix postinstall processing so it works the same as current setup,
   does not rename permanent and dash scripts, and runs only once
   after all packages have been installed (even recursively);
* add apt-get-like source command with options for --download-only
   and --compile, which uses whichever is available in the package:
   -cygport script, so it can auto-pre-install build dependencies to build;
   - configure script;
   - Makefile;
   both of the latter require build dependencies manually preinstalled;
* quieten wget by adding the -nv --non-verbose option.
Download latest branch wget-non-verbose and try it if you use apt or want to
easily download and/or build sources, especially those using cygport (many):
master branch reflects the original whose author seems unresponsive lately,
so pull requests may never be merged.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

--
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

  reply	other threads:[~2016-11-05 18:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-05 14:02 Drake, Richard R
2016-11-05 16:15 ` Wayne Davison
2016-11-05 17:29   ` Brian Inglis
2016-11-05 17:30   ` Brian Inglis
2016-11-05 17:33 ` Drake, Richard R
2016-11-05 18:51   ` Brian Inglis [this message]
2016-11-05 20:20     ` Achim Gratz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=21828fef-9cb4-7365-aba3-055a0260f723@SystematicSw.ab.ca \
    --to=brian.inglis@systematicsw.ab.ca \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).