From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by sourceware.org (Postfix) with ESMTPS id 4798D3851C2C for ; Sat, 27 Jun 2020 07:40:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 4798D3851C2C Received: by mail-wm1-x32f.google.com with SMTP id f139so11410011wmf.5 for ; Sat, 27 Jun 2020 00:40:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZlT1Ppxz+0pbkc2PQObtRxRoXY5mlfIpAPmcqpHvp+4=; b=nfEIzmRUYmoi/H5YVetW23f0V0RGk/E7OlzlJAZdhKVEuzVNL1LoI3hfFtwU+9WWx4 Z9zL0+5tJ6cgsip717rccllRlY8q/VLEXXoDIkMJ+Nxq9Htu7cl658dS5Otb2E1ILbfr KNmBBmDHhQQ6ybu9WmHY+iMu5c1H3jc9fBk76l3PTmn4PkeEccl1vN1T8lzsda33zPR1 6v4RfsbyBzWelrWS76LiYI9J5s2ZZ8SV+H3HqHkgDSmVN0uZEjY8i66MyWaFlldEPjMf YcfRFWjOHTlMiziijV4PX3PW9/AoZzZ/pHBT1cAYw2JKeZjHoqMN+BAtnd/65S5cHAt5 Sxig== X-Gm-Message-State: AOAM5322tUmdVNDIBwEXAQsy7looYkSeipnR0q71fdSFaZi3Et+iZDZj dyyUuHeZQS31J/S2mymK68HL6RIRFUK5tZpYkuaOihzW5Gk= X-Google-Smtp-Source: ABdhPJxNlW3vytIhRT47fXk4ajARDNRFyKIroXMxV/PaeW/Q2KrlI+zS3nSpeWm60jtVtj/3Umzoh6a/pqnvzPLCSsY= X-Received: by 2002:a05:600c:285:: with SMTP id 5mr7402561wmk.41.1593243630304; Sat, 27 Jun 2020 00:40:30 -0700 (PDT) MIME-Version: 1.0 References: <20200627.013459.435705702566725844.yasu@utahime.org> <0310877b-25b4-168d-f605-98b924ca6b62@SystematicSw.ab.ca> <647292733.20200626201521@yandex.ru> <20200627.030404.1219230595825821536.yasu@utahime.org> In-Reply-To: <20200627.030404.1219230595825821536.yasu@utahime.org> From: Csaba Raduly Date: Sat, 27 Jun 2020 09:40:18 +0200 Message-ID: Subject: Re: Listing only manually installed package To: Yasuhiro KIMURA Cc: cygwin list X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Sat, 27 Jun 2020 07:40:32 -0000 On Fri, 26 Jun 2020 at 20:20, Yasuhiro KIMURA wrote: > > From: Brian Inglis > Subject: Re: Listing only manually installed package > Date: Fri, 26 Jun 2020 11:20:26 -0600 > > > $ grep '\s1$' /etc/setup/installed.db # manual > > $ grep '\s0$' /etc/setup/installed.db # auto > > > > $ awk '1 == $3' /etc/setup/installed.db # manual > > $ awk '0 == $3' /etc/setup/installed.db # auto > > > > I can't remember what the pristine state of the Base category packages are, > > I've messed around with the setup files so much for so long. > > I checked /etc/setup/installed.db on my 32bit and 64bit console but in > each case all lines end with "0". Therefore, > Just a data point: Csaba@AMDAHL ~ $ grep -c '\s1$' /etc/setup/installed.db 49 Csaba@AMDAHL ~ $ grep -c '\s0$' /etc/setup/installed.db 461 Csaba -- You can get very substantial performance improvements by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler So if you're looking for a completely portable, 100% standards-conformant way to get the wrong information: this is what you want. - Scott Meyers (C++TDaWYK)