From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp01.belwue.de (smtp01.belwue.de [129.143.71.86]) by sourceware.org (Postfix) with ESMTPS id D0161399C009 for ; Thu, 8 Jul 2021 15:02:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D0161399C009 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rus.uni-stuttgart.de Authentication-Results: sourceware.org; spf=none smtp.mailfrom=rus.uni-stuttgart.de Received: from fex.rus.uni-stuttgart.de (fex.rus.uni-stuttgart.de [129.69.1.129]) by smtp01.belwue.de (Postfix) with SMTP id B1AAECC6A for ; Thu, 8 Jul 2021 17:02:03 +0200 (MEST) Date: Thu, 8 Jul 2021 17:02:03 +0200 From: Ulli Horlacher To: cygwin@cygwin.com Subject: Re: search and install packages via bash? Message-ID: <20210708150203.GB21966@tik.uni-stuttgart.de> Mail-Followup-To: cygwin@cygwin.com References: <20210708084556.GA7359@tik.uni-stuttgart.de> <20210708135324.GA20639@tik.uni-stuttgart.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, KAM_SHORT, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jul 2021 15:02:09 -0000 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: