From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp02.belwue.de (smtp02.belwue.de [129.143.71.87]) by sourceware.org (Postfix) with ESMTPS id 0B7E7386197D for ; Thu, 8 Jul 2021 14:19:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0B7E7386197D 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 smtp02.belwue.de (Postfix) with SMTP id 0361482CB for ; Thu, 8 Jul 2021 16:19:14 +0200 (MEST) Date: Thu, 8 Jul 2021 16:19:13 +0200 From: Ulli Horlacher To: The Cygwin Mailing List Subject: Re: search and install packages via bash? Message-ID: <20210708141913.GA21966@tik.uni-stuttgart.de> Mail-Followup-To: The Cygwin Mailing List References: <20210708084556.GA7359@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=1.0 required=5.0 tests=BAYES_40, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Level: * 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 14:19:17 -0000 On Thu 2021-07-08 (13:13), Jon Turney wrote: > You could possibly build something equivalent using 'cygcheck -p' and > then processing it's output This part was easy: W10dev:/usr/local/bin: cygsearch ksh Found 449 matches for ksh kshisen-debuginfo-17.04.3-1 - kshisen-debuginfo: Debug info for kshisen kshisen-debuginfo-17.08.3-1 - kshisen-debuginfo: Debug info for kshisen kshisen-debuginfo-17.12.3-1 - kshisen-debuginfo: Debug info for kshisen kshisen-17.04.3-1-src - kshisen-src: KDE Shisensho game (source) kshisen-17.08.3-1-src - kshisen-src: KDE Shisensho game (source) kshisen-17.12.3-1-src - kshisen-src: KDE Shisensho game (source) kshisen-17.04.3-1 - kshisen: KDE Shisensho game kshisen-17.08.3-1 - kshisen: KDE Shisensho game kshisen-17.12.3-1 - kshisen: KDE Shisensho game mksh-debuginfo-53a-1 - mksh-debuginfo: Debug info for mksh (installed binaries and support files) mksh-debuginfo-54-1 - mksh-debuginfo: Debug info for mksh (installed binaries and support files) mksh-debuginfo-56c-1 - mksh-debuginfo: Debug info for mksh mksh-53a-1-src - mksh-src: MirBSD Korn Shell (source) mksh-54-1-src - mksh-src: MirBSD Korn Shell (source) mksh-56c-1-src - mksh-src: MirBSD Korn Shell (source) mksh-53a-1 - mksh: MirBSD Korn Shell (installed binaries and support files) mksh-54-1 - mksh: MirBSD Korn Shell (installed binaries and support files) mksh-56c-1 - mksh: MirBSD Korn Shell W10dev:/usr/local/bin: cat cygsearch #!/bin/bash prg=$(basename $) if [ -z "$1" -o "$1" = "-h" ]; then echo "usage: $prg [-a] EXPRESSION" echo "example: $prg zsh" echo "see also: cygcheck, cyginstall" exit fi if [ "$1" = "-a" ]; then cygcheck -p "$2" else cygcheck -p "$1" | grep "$1" fi -- 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: