search and install packages via bash?

Ulli Horlacher framstag@rus.uni-stuttgart.de
Thu Jul 8 15:02:03 GMT 2021


On Thu 2021-07-08 (16:46), Marco Atzeri via Cygwin wrote:
> On 08.07.2021 15:53, Ulli Horlacher wrote:
> 
> > On Thu 2021-07-08 (13:13), Jon Turney wrote:
> >> On 08/07/2021 09:45, Ulli Horlacher wrote:
> >>
> >>> Is it possible from an interactive bash to search for cygwin packages (by
> >>> substring match) and install them?
> >>>
> >>> I tried "/setup-x86_64.exe -h" but cannot see any options for it.
> >>
> >> This feature doesn't exist (yet).
> >>
> >> You could possibly build something equivalent using 'cygcheck -p' and
> >> then processing it's output
> > 
> > This is the easy part, but how do I install a package via bash?
> > I tried it this way:
> > 
> > 
> > W10dev:/usr/local: /setup-x86_64.exe  -M -B -R "$CYGWIN_ROOT" -l "$CYGWIN_ROOT/.pkg-cache" -s https://ftp.fau.de/cygwin -P mksh
> 
> try without the
>     -l "$CYGWIN_ROOT/.pkg-cache"

Same result: nothing is displayed selected for installation.

But when I click "Next" the package will be installed! HUH?!

Augmented Transaction List:
   0 install mksh 56c-1
Extracting from file://C:\Users\admin\cygwin/.pkg-cache/https%3a%2f%2fftp.fau.de%2fcygwin%2f/x86_64/release/mksh/mksh-56c-1.tar.xz
running: C:\Users\admin\cygwin\bin\dash.exe "/etc/postinstall/0p_000_autorebase.dash"
running: C:\Users\admin\cygwin\bin\dash.exe "/etc/postinstall/0p_update-info-dir.dash"
running: C:\Users\admin\cygwin\bin\bash.exe --norc --noprofile "/etc/postinstall/mksh.sh"
running: C:\Users\admin\cygwin\bin\dash.exe "/etc/postinstall/zp_man-db-update-index.dash"
Ending cygwin install

W10dev:/usr/local/bin: type ksh
ksh is /usr/bin/ksh

W10dev:/usr/local/bin: cygcheck -f /usr/bin/ksh
mksh-56c-1


-- 
Ullrich Horlacher              Server und Virtualisierung
Rechenzentrum TIK         
Universitaet Stuttgart         E-Mail: horlacher@tik.uni-stuttgart.de
Allmandring 30a                Tel:    ++49-711-68565868
70569 Stuttgart (Germany)      WWW:    http://www.tik.uni-stuttgart.de/
REF:<ee7dae60-6b16-8576-5777-537a4b7c8697@gmail.com>


More information about the Cygwin mailing list