From: Richard Beels <spiffnetservice@gmail.com>
To: cygwin@cygwin.com
Subject: Re: search and install packages via bash?
Date: Sat, 10 Jul 2021 00:14:37 -0400 [thread overview]
Message-ID: <60e92035.1c69fb81.da2f6.8414@mx.google.com> (raw)
In-Reply-To: <20210708211451.0007A3888821@sourceware.org>
At 07/08/2021 at 17:11, Shakespearean monkeys danced on Richard Beels
via Cygwin's keyboard and said:
><snipped>
>2, use fzf. i don't use it (yet?) but it should be something like:
I decided to download fzf and play with this since the itch grabbed
me... It took all of 5 seconds for me to remember a bunch of
packages with a "-" in the name, so came up with this instead:
cyginst() { # install cygwin package(s) from the commandline, can't do *-src
_pkg=$(cygcheck -p "$1" \
| grep "$1" \
| fzf --multi --reverse \
| sed -E 's_-[0-9]+.*$__' \
| tr '\n' ',' \
| sed 's_,$__')
/setup-x86_64.exe --packages "$_pkg"
}
Since this would whack -src, I tried to figure out how to install
just a source package from the commandline to see if this would
matter but couldn't figure it out, so I guess the -I option is there
for a reason.
But I came across a weirdity with setup (2.908). While you can
change the mode into download (-D) only or local-install (-L) via
commandline, I couldn't figure out how to change it back to "install
from the internet" from the commandline. I think there should be a
parameter for this, but heck if I I have any idea about C++ (I can
barely spell it).
At a minimum, it seems that the code currently is in contradiction to
the --help output: once you choose -L or -D, that becomes the default
mode for subsequent runs. Until explicitly changed back by running
setup and clicking the appropriate button on the second dialog. It
looks like the "last-action" setting in /etc/setup/setup.rc controls
what is used as the default: "Download", "Install" (local install)
and "Download, Install" (internet install). The expected behavior
would be as the --help output describes.
Cheers!
next prev parent reply other threads:[~2021-07-10 4:21 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-08 8:45 Ulli Horlacher
2021-07-08 12:13 ` Jon Turney
2021-07-08 13:53 ` Ulli Horlacher
2021-07-08 14:46 ` Marco Atzeri
2021-07-08 15:02 ` Ulli Horlacher
2021-07-08 14:19 ` Ulli Horlacher
2021-07-08 21:11 ` Richard Beels
2021-07-08 21:11 ` Richard Beels
2021-07-08 21:11 ` Richard Beels
[not found] ` <20210708211451.0007A3888821@sourceware.org>
2021-07-10 4:14 ` Richard Beels [this message]
[not found] ` <20210708211539.705673AA9C30@sourceware.org>
2021-07-10 14:13 ` Adam Dinwoodie
2021-07-10 14:20 ` Eliot Moss
2021-07-08 18:28 ` Thomas Wolff
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=60e92035.1c69fb81.da2f6.8414@mx.google.com \
--to=spiffnetservice@gmail.com \
--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).