Cygwin setup.exe via the cygwin shell

View: New views
7 Messages — Rating Filter:   Alert me  

Cygwin setup.exe via the cygwin shell

by acmeinc :: Rate this Message:

| View Threaded | Show Only this Message

I'm trying to install Cygwin apps via the Cygwin shell rather than opening and running the setup.exe via the windows interface.

I figure there must be a way, similar to FreeBSD ports tree, to install Cygwin/Unix apps via the Cygwin shell.  

This will also allow me to install and update apps remotely as I have OpenSSH setup.

Please let me konw if you any information regarding installing and setting up Cygwin via the Cygwin shell.

RE: Cygwin setup.exe via the cygwin shell

by Thrall, Bryan :: Rate this Message:

| View Threaded | Show Only this Message

acmeinc wrote on Thursday, October 30, 2008 10:27 PM:
> I'm trying to install Cygwin apps via the Cygwin shell rather than
opening
> and running the setup.exe via the windows interface.
>
> I figure there must be a way, similar to FreeBSD ports tree, to
install
> Cygwin/Unix apps via the Cygwin shell.
>
> This will also allow me to install and update apps remotely as I have
> OpenSSH setup.
>
> Please let me konw if you any information regarding installing and
setting
> up Cygwin via the Cygwin shell.

----
$ setup.exe -h
$ cat setup.log
<snip>
Command Line Options:
 -D --download                          Download from internet
 -L --local-install                     Install from local directory
 -s --site                              Download site
 -R --root                              Root installation directory
 -P --packages                          Specify packages to install
 -p --proxy                             HTTP/FTP proxy (host:port)
 -q --quiet-mode                        Unattended setup mode
 -h --help                              print help
 -l --local-package-dir                 Local package directory
 -r --no-replaceonreboot                Disable replacing in-use files
on next
                                        reboot.
 -X --no-verify                         Don't verify setup.ini
signatures
 -n --no-shortcuts                      Disable creation of desktop and
start
                                        menu shortcuts
 -N --no-startmenu                      Disable creation of start menu
shortcut
 -d --no-desktop                        Disable creation of desktop
shortcut
 -K --pubkey                            Path to extra public key file
(gpg
                                        format)
 -S --sexpr-pubkey                      Extra public key in s-expr
format
 -u --untrusted-keys                    Use untrusted keys from
last-extrakeys
 -U --keep-untrusted-keys               Use untrusted keys and retain
all
 -A --disable-buggy-antivirus           Disable known or suspected buggy
anti
                                        virus software packages during
                                        execution.
----

For example (untested), to install vim and bc:

setup.exe -d -q -R 'c:\cygwin' -s 'http://mirrors.xmission.com/cygwin/'
-l 'c:\cygwin\home\thrall' -P vim,bc

--
Bryan Thrall
FlightSafety International
bryan.thrall@...

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


Re: Cygwin setup.exe via the cygwin shell

by Ralph Hempel :: Rate this Message:

| View Threaded | Show Only this Message

Thrall, Bryan wrote:

> For example (untested), to install vim and bc:
>
> setup.exe -d -q -R 'c:\cygwin' -s 'http://mirrors.xmission.com/cygwin/'
> -l 'c:\cygwin\home\thrall' -P vim,bc

I'm not sure, but I _think_ the -P is only available in the 1.7
setup.

The -D and -L options are not specified in your example, so
depending on the last action performed in the previous run
of setup, you'll either get download to local, install from
local, or both.

Furthermore, there's a little bug (that I've previously submitted
a patch for) that won't let you combine -D and -D on the
same command line invocation - you have to do it twice, once with
each option.

But yes, the command line setup works well indeed!

One thing nagging in the background is whether or not you can/should
update your cygwin installation while any Cygwin processes are running.

Cheers, Ralph

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


RE: Cygwin setup.exe via the cygwin shell

by Thrall, Bryan :: Rate this Message:

| View Threaded | Show Only this Message

Ralph Hempel wrote on Friday, October 31, 2008 10:04 AM:

> Thrall, Bryan wrote:
>
>> For example (untested), to install vim and bc:
>>
>> setup.exe -d -q -R 'c:\cygwin' -s
'http://mirrors.xmission.com/cygwin/'
>> -l 'c:\cygwin\home\thrall' -P vim,bc
>
> I'm not sure, but I _think_ the -P is only available in the 1.7
> setup.

It is available in setup.exe snapshot 2.602 (see
http://cygwin.com/setup/snapshots/). I think you're right that it isn't
available in the currently released version. Sorry for not mentioning
that!

--
Bryan Thrall
FlightSafety International
bryan.thrall@...

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


RE: Cygwin setup.exe via the cygwin shell

by Dave Korn :: Rate this Message:

| View Threaded | Show Only this Message

Ralph Hempel wrote on 31 October 2008 15:04:

> One thing nagging in the background is whether or not you can/should
> update your cygwin installation while any Cygwin processes are running.

  Well, there's obviously going to be a bash process running if you do things
that way, but hopefully that will just cause the replace-on-reboot mechanism
to come into play.  You will, however, have to /expect/ to reboot every time
if you insist on launching setup from bash.  (It should be possible to launch
it from cmd.exe or from a .bat file without this inconvenience.)

  It is, in general, very much for the best if you /don't/ do things this way.
Replace-on-reboot can help, but I think it's quite possible that postinstall
scripts might fail if you have a half-updated installation waiting for a
reboot to become valid again.

    cheers,
      DaveK
--
Can't think of a witty .sigline today....


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


RE: Cygwin setup.exe via the cygwin shell

by acmeinc :: Rate this Message:

| View Threaded | Show Only this Message

Unfortunately setup.exe  is not a viable command.  Does it need to be enabled somehow?

$ setup.exe -h
bash: setup.exe: command not found


Thrall, Bryan wrote:
acmeinc wrote on Thursday, October 30, 2008 10:27 PM:
> I'm trying to install Cygwin apps via the Cygwin shell rather than
opening
> and running the setup.exe via the windows interface.
>
> I figure there must be a way, similar to FreeBSD ports tree, to
install
> Cygwin/Unix apps via the Cygwin shell.
>
> This will also allow me to install and update apps remotely as I have
> OpenSSH setup.
>
> Please let me konw if you any information regarding installing and
setting
> up Cygwin via the Cygwin shell.

----
$ setup.exe -h
$ cat setup.log
<snip>
Command Line Options:
 -D --download                          Download from internet
 -L --local-install                     Install from local directory
 -s --site                              Download site
 -R --root                              Root installation directory
 -P --packages                          Specify packages to install
 -p --proxy                             HTTP/FTP proxy (host:port)
 -q --quiet-mode                        Unattended setup mode
 -h --help                              print help
 -l --local-package-dir                 Local package directory
 -r --no-replaceonreboot                Disable replacing in-use files
on next
                                        reboot.
 -X --no-verify                         Don't verify setup.ini
signatures
 -n --no-shortcuts                      Disable creation of desktop and
start
                                        menu shortcuts
 -N --no-startmenu                      Disable creation of start menu
shortcut
 -d --no-desktop                        Disable creation of desktop
shortcut
 -K --pubkey                            Path to extra public key file
(gpg
                                        format)
 -S --sexpr-pubkey                      Extra public key in s-expr
format
 -u --untrusted-keys                    Use untrusted keys from
last-extrakeys
 -U --keep-untrusted-keys               Use untrusted keys and retain
all
 -A --disable-buggy-antivirus           Disable known or suspected buggy
anti
                                        virus software packages during
                                        execution.
----

For example (untested), to install vim and bc:

setup.exe -d -q -R 'c:\cygwin' -s 'http://mirrors.xmission.com/cygwin/'
-l 'c:\cygwin\home\thrall' -P vim,bc

--
Bryan Thrall
FlightSafety International
bryan.thrall@flightsafety.com

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

RE: Cygwin setup.exe via the cygwin shell

by Dave Korn :: Rate this Message:

| View Threaded | Show Only this Message

acmeinc wrote on 31 October 2008 16:59:

> Unfortunately setup.exe  is not a viable command.  Does it need to be
> enabled
> somehow?
>
> $ setup.exe -h
> bash: setup.exe: command not found

http://cygwin.com/faq/faq-nochunks.html#faq.using.not-found


    cheers,
      DaveK
--
Can't think of a witty .sigline today....


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