From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SOgRJyUbXWAn8gAAgWs5BA (envelope-from ) for ; Fri, 26 Mar 2021 00:22:13 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id cPsOISUbXWCyVgAA1q6Kng (envelope-from ) for ; Thu, 25 Mar 2021 23:22:13 +0000 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 42A252BD04 for ; Fri, 26 Mar 2021 00:22:13 +0100 (CET) Received: from localhost ([::1]:50632 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lPZIq-0001Jg-3v for larch@yhetil.org; Thu, 25 Mar 2021 19:22:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44136) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lPZIh-0001J0-EG for guix-patches@gnu.org; Thu, 25 Mar 2021 19:22:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56555) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lPZIh-0007F2-5v for guix-patches@gnu.org; Thu, 25 Mar 2021 19:22:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lPZIh-00069c-2g for guix-patches@gnu.org; Thu, 25 Mar 2021 19:22:03 -0400 Subject: bug#47213: [PATCH v2] doc: Add snippet for running 'guix refresh' on installed Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Thu, 25 Mar 2021 23:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 47213 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Xinglu Chen Cc: 47213-done@debbugs.gnu.org Mail-Followup-To: 47213@debbugs.gnu.org, ludo@gnu.org, public@yoctocell.xyz Received: via spool by 47213-done@debbugs.gnu.org id=D47213.161671451223613 (code D ref 47213); Thu, 25 Mar 2021 23:22:02 +0000 Received: (at 47213-done) by debbugs.gnu.org; 25 Mar 2021 23:21:52 +0000 Received: from localhost ([127.0.0.1]:39863 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPZIV-00068n-NE for submit@debbugs.gnu.org; Thu, 25 Mar 2021 19:21:51 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51100) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPZIT-00068Z-Jh for 47213-done@debbugs.gnu.org; Thu, 25 Mar 2021 19:21:49 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:33887) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lPZIN-00075C-Kd; Thu, 25 Mar 2021 19:21:43 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=35272 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lPZIN-0004gq-6d; Thu, 25 Mar 2021 19:21:43 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <1b75951ffc583006980d809718e5cdc4fd1c3d37.1615911469.git.public@yoctocell.xyz> <239f5ab21f9d39a00b71963b127e2745969e44cf.1615983540.git.public@yoctocell.xyz> Date: Fri, 26 Mar 2021 00:21:41 +0100 In-Reply-To: <239f5ab21f9d39a00b71963b127e2745969e44cf.1615983540.git.public@yoctocell.xyz> (Xinglu Chen's message of "Wed, 17 Mar 2021 13:23:23 +0100") Message-ID: <87blb64y62.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616714533; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-to: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=UEA/OheYzQ5UpBhwJwBVXuUDY/WgUweOsW3c1P8i4D0=; b=ruRCN1U85H+gCAE2QIceNIBW80UWm5DuRb/6dqKEeycWbApFQtXMjodYKxBoDMHWdq3wgQ krZFJrAn+ldd+ToekCsZpCY2iVQh/bpkliMvWWHBOtPuf2ZCWVRzHXzdWwZwUcWNK9rz3m pqROlwt4CeMUpKK9cK+3CC3VBaefzQV30DBtLTG521eUelHuu2wxlmRORi+aGZlUlOl/lz 7+PebsmVDy9Rw+8OXpkhq2gwayRd1e02jLo+VHEpa/ECOKB69AbL+BwQvXkoXYTwC8xm7q j3YojSW98d9DUiPDxzhG/gVBJ5G6rUqTySi9BAeoIodDPMrL5RRTXfvbXD8XhA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616714533; a=rsa-sha256; cv=none; b=THVm6+LxfUmQdp1JR8Q6qTNyj2xEpP5lBhP1CNEo5Y2WEg1TQKiF9NXoOjhwlfkFKhisu6 rqooGYZESJfZD9ACm4zi6fG2Y6jQIQ5Lo/bo8j0cbR87s/1ubp5eCiAKeTIXs2TVCN97Ti mfKYYwpeprulpkmMB9tOFzibiIZYtqMe+C0urvM/MpeocQuy2GPWIVD8ewVzVS16Y4Jt7j 85h9otG0522VxwcW7gO61fjRjvi8lxA3d4CdQt7K/SmIACYsD7ClSPnA9Gqpnw+zHkkOE/ CjDdQPGEdYlV3tlSCOdv1k5NWmgSREq2ahDOaJbyOk5zVnfkzIfpTJJ006GsGQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -2.92 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 42A252BD04 X-Spam-Score: -2.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: 0+UO7HBvZ/il Hi! Xinglu Chen skribis: > * doc/guix.texi (Invoking guix refresh): Add snippet that runs 'guix refr= esh' > on all the packages installed in the current profile. > --- > Changes since v1: > - Correct the example snippet. > - Refer the reader to "Running Guix Before It Is Installed". > - Add suggestion to run `guix package -i --with-latest`. > > doc/guix.texi | 18 ++++++++++++++++-- > 1 file changed, 16 insertions(+), 2 deletions(-) > > diff --git a/doc/guix.texi b/doc/guix.texi > index 410670e639..d94772d5be 100644 > --- a/doc/guix.texi > +++ b/doc/guix.texi > @@ -87,6 +87,7 @@ > Copyright @copyright{} 2020 John Soo@* > Copyright @copyright{} 2020 Jonathan Brielmaier@* > Copyright @copyright{} 2020 Edgar Vincent@* > +Copyright @copyright{} 2021 Xinglu Chen@* >=20=20 > Permission is granted to copy, distribute and/or modify this document > under the terms of the GNU Free Documentation License, Version 1.3 or > @@ -11719,8 +11720,21 @@ >=20=20 > @noindent > The command above specifically updates the @code{emacs} and > -@code{idutils} packages. The @option{--select} option would have no > -effect in this case. > +@code{idutils} packages (see @pxref{Running Guix Before It Is > +Installed}). The @option{--select} option would have no effect in this > +case. > + > +You can also quickly update all the packages installed in the current > +profile with the following snippet: > + > +@example > +$ ./pre-inst-env guix refresh -u $(guix package --list-installed | cut -= f1) > +@end example > + > +This is handy if you don't use manifests for installing packages into > +your profile. If you just want to install the latest version of a > +package, run @command{guix package -i --with-latest} (see @pxref{Package > +Transformation Options}). I pushed a variant of this as commit 3cb1136780108aebe45794e639b4a8c06460c7e3 and related commits. Thank you, and apologies for the delay! Ludo=E2=80=99.