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 C61C4398B8A9 for ; Thu, 8 Jul 2021 13:53:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C61C4398B8A9 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 EA31559AE for ; Thu, 8 Jul 2021 15:53:24 +0200 (MEST) Date: Thu, 8 Jul 2021 15:53:24 +0200 From: Ulli Horlacher To: The Cygwin Mailing List Subject: Re: search and install packages via bash? Message-ID: <20210708135324.GA20639@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=0.5 required=5.0 tests=BAYES_05, 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 13:53:30 -0000 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 Starting cygwin install, version 2.908 User has NO backup/restore rights io_stream_cygfile: fopen(/etc/setup/setup.rc) failed 2 No such file or directory Current Directory: C:\Users\admin\cygwin/.pkg-cache root: C:\Users\admin\cygwin user Selected local directory: C:\Users\admin\cygwin/.pkg-cache net: Preconfig site: https://ftp.fau.de/cygwin/ But got "Nothing to install or update" https://fex.flupp.org/fop/nbVoB9kQ/X-20210708155136.png The fopen() error is mysterious for me, too: W10dev:/usr/local: ll /etc/setup/setup.rc -rw-r--r-- admin None 11,850 2021-07-08 15:36:54 /etc/setup/setup.rc W10dev:/usr/local: id uid=1001(admin) gid=197121(None) groups=197121(None),545(Users),4(INTERACTIVE),66049(CONSOLE LOGON),11(Authenticated Users),15(This Organization),113(Local account),4095(CurrentSession),66048(LOCAL),262154(NTLM Authentication),401408(Medium Mandatory Level) W10dev:/usr/local: head -2 /etc/setup/setup.rc last-cache C:\Users\admin\cygwin/.pkg-cache -- 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: