From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 114904 invoked by alias); 5 Nov 2016 18:51:10 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 114890 invoked by uid 89); 5 Nov 2016 18:51:09 -0000 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 Received: from smtp-out-so.shaw.ca (HELO smtp-out-so.shaw.ca) (64.59.136.137) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 05 Nov 2016 18:50:59 +0000 Received: from [192.168.1.100] ([174.0.238.184]) by shaw.ca with SMTP id 363McJFVAeeHN363NcbaZI; Sat, 05 Nov 2016 12:50:57 -0600 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: To: cygwin@cygwin.com Reply-To: Brian.Inglis@SystematicSw.ab.ca From: Brian Inglis Message-ID: <21828fef-9cb4-7365-aba3-055a0260f723@SystematicSw.ab.ca> Date: Sat, 05 Nov 2016 18:51:00 -0000 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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfOqKmQZV5ene7kQqRgrf9e56kWWfrqiU/V3z+XDQuy75qvEXzwtpb74rfCkdLrsmSC5FOIrbOxdY8nMqeRx4zE1h9/Y+45qknPvZE/LBxR8HF5YC1qzh MN49VDdZzggKegr/+rA1JYeH3KGPAppDB/SPHgsZHDfoqCmN5zXORovaZ6+xVjyMlhFHZDso7KjXPw== X-IsSubscribed: yes X-SW-Source: 2016-11/txt/msg00052.txt.bz2 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