public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Unattended install "remembers" the download option
@ 2016-11-05 14:02 Drake, Richard R
  2016-11-05 16:15 ` Wayne Davison
  2016-11-05 17:33 ` Drake, Richard R
  0 siblings, 2 replies; 7+ messages in thread
From: Drake, Richard R @ 2016-11-05 14:02 UTC (permalink / raw)
  To: The Cygwin Mailing List

Hello,

Does anyone know how the cygwin setup "remembers" install settings?  Such
as --download.

I ran the setup once using --download, and now every time I use it, it
runs with that option by default.  The problem is that I want to use
unattended mode to install additional products but they don't get
installed because it assumes the download only option.

Is there a "download and install" option that can be used?  In order to
override the "download only" option.  I didn't see one.

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.

Thanks,

-rich


--
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] 7+ messages in thread

* Re: Unattended install "remembers" the download option
  2016-11-05 14:02 Unattended install "remembers" the download option 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
  1 sibling, 2 replies; 7+ messages in thread
From: Wayne Davison @ 2016-11-05 16:15 UTC (permalink / raw)
  To: cygwin

On Sat, Nov 5, 2016 at 7:01 AM, Drake, Richard R <rrdrake@sandia.gov> 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).

..wayne..

--
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] 7+ messages in thread

* Re: Unattended install "remembers" the download option
  2016-11-05 16:15 ` Wayne Davison
@ 2016-11-05 17:29   ` Brian Inglis
  2016-11-05 17:30   ` Brian Inglis
  1 sibling, 0 replies; 7+ messages in thread
From: Brian Inglis @ 2016-11-05 17:29 UTC (permalink / raw)
  To: cygwin

On 2016-11-05 10:14, Wayne Davison wrote:
> On Sat, Nov 5, 2016 at 7:01 AM, Drake, Richard R <rrdrake@sandia.gov> 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).

The first setup screen after the splash/version screen has these options,
choose: Install from internet (implies Download first).

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

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

* Re: Unattended install "remembers" the download option
  2016-11-05 16:15 ` Wayne Davison
  2016-11-05 17:29   ` Brian Inglis
@ 2016-11-05 17:30   ` Brian Inglis
  1 sibling, 0 replies; 7+ messages in thread
From: Brian Inglis @ 2016-11-05 17:30 UTC (permalink / raw)
  To: cygwin

On 2016-11-05 10:14, Wayne Davison wrote:
> On Sat, Nov 5, 2016 at 7:01 AM, Drake, Richard R <rrdrake@sandia.gov> 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).

The first setup screen after the splash/version screen has these options,
choose: Install from internet (implies Download first).

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

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

* Re: Unattended install "remembers" the download option
  2016-11-05 14:02 Unattended install "remembers" the download option Drake, Richard R
  2016-11-05 16:15 ` Wayne Davison
@ 2016-11-05 17:33 ` Drake, Richard R
  2016-11-05 18:51   ` Brian Inglis
  1 sibling, 1 reply; 7+ messages in thread
From: Drake, Richard R @ 2016-11-05 17:33 UTC (permalink / raw)
  To: The Cygwin Mailing List

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.

-rich

---------------------------------------------------------
From: Wayne Davison <wayne at opencoder dot net>
Date: Sat, 5 Nov 2016 09:14:40 -0700
Subject: Re: Unattended install "remembers" the download option

On Sat, Nov 5, 2016 at 7:01 AM, Drake, Richard R <rrdrake@sandia.gov>
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).

..wayne..



--
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] 7+ messages in thread

* Re: Unattended install "remembers" the download option
  2016-11-05 17:33 ` Drake, Richard R
@ 2016-11-05 18:51   ` Brian Inglis
  2016-11-05 20:20     ` Achim Gratz
  0 siblings, 1 reply; 7+ messages in thread
From: Brian Inglis @ 2016-11-05 18:51 UTC (permalink / raw)
  To: cygwin

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

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

* Re: Unattended install "remembers" the download option
  2016-11-05 18:51   ` Brian Inglis
@ 2016-11-05 20:20     ` Achim Gratz
  0 siblings, 0 replies; 7+ messages in thread
From: Achim Gratz @ 2016-11-05 20:20 UTC (permalink / raw)
  To: cygwin

Brian Inglis writes:
> * 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);

You probably want to split the white-space changes into a separate
commit.

The postinstalll script logic is still wrong, but I don't think it's
fixable completely since it'd try to run the postinstall scripts from
the same Cygwin instance as the one it had installed to.

For a description of how it is supposed to work and implemented in setup
see: https://cygwin.com/ml/cygwin-apps/2014-12/msg00148.html


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptation for Waldorf microQ V2.22R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada

--
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] 7+ messages in thread

end of thread, other threads:[~2016-11-05 20:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-05 14:02 Unattended install "remembers" the download option 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
2016-11-05 20:20     ` Achim Gratz

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