delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/11/05/14:51:26

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:references:to:reply-to:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=gAARLCqGfP6JIE0h
U/L5FJ/h5LGI3mTTzDoX1duwD/dZQ7Nau2KQPu+EPBqcuVouYdRIN2Q8ofd9j59I
LNWjznPTV5KEqvEOVvBGhgz7aPtCNnjuJ8vuGIr22jgt8OXD+GbcZUMOq/Fitoeg
jtpIvAr8u8pzkdBJVuduakUkSZY=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:references:to:reply-to:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=ENfYu69D+Yyaag/0kHH0us
f9IQg=; b=K5fnwSo8Eq0f8L8Q8eVSw6Su3wKlmYmPODUrAjE8bGlcp9rP678eiR
tkQ/pG12oNBOs5R0rlQSPz45+67R3nuOmdZnz7sIhCATG0pGn/ZIhLVRo9Wwh6aY
qsUxn8ZkKAsph8fD7PHjnmX8Q6/THhdBm54IcXHhPbMKwwUOBLzI8=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=apt, H*MI:D4436FF9.D3B2, H*f:D4436FF9.D3B2, H*i:D4436FF9.D3B2
X-HELO: smtp-out-so.shaw.ca
X-Authority-Analysis: v=2.2 cv=abURpVgt c=1 sm=1 tr=0 a=WqCeCkldcEjBO3QZneQsCg==:117 a=WqCeCkldcEjBO3QZneQsCg==:17 a=IkcTkHD0fZMA:10 a=NEAV23lmAAAA:8 a=YUFrfkMcSoyfycKTDxcA:9 a=QEXdDO2ut3YA:10 a=Bn2pgwyD2vrAyMmN8A2t:22
Subject: Re: Unattended install "remembers" the download option
References: <D4434266.D3A9%rrdrake AT sandia DOT gov> <D4436FF9.D3B2%rrdrake AT sandia DOT gov>
To: cygwin AT cygwin DOT com
Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Message-ID: <21828fef-9cb4-7365-aba3-055a0260f723@SystematicSw.ab.ca>
Date: Sat, 5 Nov 2016 12:50:56 -0600
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0
MIME-Version: 1.0
In-Reply-To: <D4436FF9.D3B2%rrdrake@sandia.gov>
X-CMAE-Envelope: MS4wfOqKmQZV5ene7kQqRgrf9e56kWWfrqiU/V3z+XDQuy75qvEXzwtpb74rfCkdLrsmSC5FOIrbOxdY8nMqeRx4zE1h9/Y+45qknPvZE/LBxR8HF5YC1qzh MN49VDdZzggKegr/+rA1JYeH3KGPAppDB/SPHgsZHDfoqCmN5zXORovaZ6+xVjyMlhFHZDso7KjXPw==
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019