From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id gLrNC1MFbWKlLQEAbAwnHQ (envelope-from ) for ; Sat, 30 Apr 2022 11:45:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id IHHNClMFbWKH9QAAG6o9tA (envelope-from ) for ; Sat, 30 Apr 2022 11:45:55 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CC11CFFEB for ; Sat, 30 Apr 2022 11:45:54 +0200 (CEST) Received: from localhost ([::1]:46214 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nkjfl-0000tz-VY for larch@yhetil.org; Sat, 30 Apr 2022 05:45:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55228) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkjf7-0000tb-Hk for guix-devel@gnu.org; Sat, 30 Apr 2022 05:45:15 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:42746) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nkjf6-0005Mz-1K for guix-devel@gnu.org; Sat, 30 Apr 2022 05:45:13 -0400 Received: by mail-wr1-x435.google.com with SMTP id e24so13610328wrc.9 for ; Sat, 30 Apr 2022 02:45:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:in-reply-to:references:date:message-id:mime-version :content-transfer-encoding; bh=q2YhMEg+XjjCmk5usFA6P8tjRR5cv6M/03lDp6t+Im4=; b=Mzn+K2SgbxwFRoX3Xfa82xgt0kRIqjGScizN8frp44Nyr/bxjA+UkZk8RKWpjl+AM+ 9bwDkFA1CMjdtA2K3YjPzgQ5S2pol+iZLxmfCDRsqdzNBXTCwx5QyAV4APOr10wO9b5N VDLj+N+y9Itr1BC80V4U6Zc/yWMp7idbNKYr3pFuL0wX/Fqi7yiMEB0a0ILFqUOn9592 oul7p3OU2mUHz43Ri2+nJYKK2Z7qMeTvm56n5rlG7DxNulTdGvwaF3Zl0xlQQxy99xOV pd8wfXGgnOM9yTkEAUaLs8YaCZAWqu52ARoHwNo0/bE12hQi2X80bytzJdtMw85so/25 UxJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=q2YhMEg+XjjCmk5usFA6P8tjRR5cv6M/03lDp6t+Im4=; b=SSY4r/BJl1V8wQOoo4Ev6YMKgh57YGNGUWbYDhAk47ZBSSjD8dRwsz4yAh3oRGlbcE J3rGnDsxVRoDIzMWUcrksv+Kf1XhNeuDCBzGantfFiW+V6CAQvUuou/LYk67njCJukv5 J990DmCuvHbIy/gl6zVRWX6QqIVYSoaX3i/8Qy/GMAy56qireAscPmsykQnxchXJJ058 aZPnWEBlK9hY6/ViHfPf8zEYPub6pHQdGoFIV5o9g9lggp93XGsT+K87Nne2wFlnKcV/ 7A08aqcJsX7x21DPDSXf0+MDexnyak3dzMhaS6Xwd/U9bO6oJVemMSRVOcHHVmfEA2J7 O0cQ== X-Gm-Message-State: AOAM531HdFYaJNyoxvOpfgMxFgTQ2aTp0nN+28yC1bqsXf1JlcPUUXCJ LTtgqaVJoA5+esMf457Q6HICJmm9kws= X-Google-Smtp-Source: ABdhPJxiy0ilO7GjXzz/OkxjE1Ri2ejx69BH8+Pi+V0N3pWym9Xt2XjxSEbbBc6kivab4pThGYjECg== X-Received: by 2002:a5d:510a:0:b0:20c:4452:3161 with SMTP id s10-20020a5d510a000000b0020c44523161mr2546577wrt.31.1651311909983; Sat, 30 Apr 2022 02:45:09 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id q16-20020a7bce90000000b003942a244edesm1359750wmj.35.2022.04.30.02.45.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Apr 2022 02:45:09 -0700 (PDT) From: zimoun To: Zhu Zihao , Guix Devel Subject: Re: Improve the output of `guix refresh -l` In-Reply-To: <86v8wcub48.fsf@163.com> References: <86v8wcub48.fsf@163.com> Date: Sat, 30 Apr 2022 11:40:32 +0200 Message-ID: <86zgk2oqnj.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x435.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651311954; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=q2YhMEg+XjjCmk5usFA6P8tjRR5cv6M/03lDp6t+Im4=; b=K806j1Aqvu8BMcliIPuczcDn2aufWBPix2sBQI1hbVwi4ui8y2j98yHctXFaR1Bf+64hNT GT4S95PHQyoH62EBF8XfwgHijVlKXARf/eDkH3FV0tD4Wr2t7HaiUXmby+ngcHQA0tL91t DSGW3BaSAYxClJztX3dDTRJ5lq7HDx8uKoNXLykEIIdfVis2q8v/KW8/tPYT8YaVN9fKJd 4Dm+/rPQct8e1fWCONND1/msOLo477Jz+Yogs8ATkYzAxOq1xmwpavHXvQ2fhuZxyrRN8f dFrRhfnoeB5xU/WtoXtR8NBd3blII4p5DNdeUO/h5/IB54vdsm/n/2N7znf1JQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651311954; a=rsa-sha256; cv=none; b=P6DkTQV1aB99PfadygQBMfOCWzm2mBb9krgGU8b0/oGAFvp4wjG+PMoD8UGuNLjgtrDs39 /iZXL6KH3baf4rtVxecLHsEUdfTjN/afP4upee3KBWwY7NESjqkAurCkosqRvZfJx5ihiC iqIfzRi8NXwRl+GeQqqDh5VRsaruYD+awVknpkD5CnlzZWui8IDSXVPgMRLYKC8x0Y781O z/8YtRcI0quZKGsqLKZK7un6GGm4pm5jqg9Mw7gnu5fx3j6cw3bjBkEZystMYGbMsh/wdL GCiQEZem8TmaqOMkGDbkCiyGWiC5EG9MQpCswzR1IU08PwINZfXCRkSEoT2iYg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Mzn+K2Sg; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -9.00 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Mzn+K2Sg; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: CC11CFFEB X-Spam-Score: -9.00 X-Migadu-Scanner: scn0.migadu.com X-TUID: HwxArgWCZTeo Hi, On Thu, 17 Mar 2022 at 18:22, Zhu Zihao wrote: > for example, run `guix refresh -l pango`, The terminal prints: > > ``` > Building the following 2945 packages would ensure 7521 dependent > packages are rebuilt: ...... > ``` > > The package list is too long to read, flood my terminal with package > names. It will hide the actual rebuilt count, I have to pipe the output > to less command to make sure I can see it. Instead of piping to less, I pipe to cut, guix refresh -l python-numpy | cut -f1 -d':' And rebuild, I use: guix build $(guix refresh -l python-pytorch | cut -f2 -d':') or if I need a readable list: guix refresh -l python-scipy | cut -f2 -d':' | sed 's/ /\n/g' > What about add an option like `--detail` for `guix refresh -l`? I agree that the output of =E2=80=9Cguix refresh -l=E2=80=9D is cumbersome.= :-) Cheers, simon