From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iu+6ALT7UGAsSQAA0tVLHw (envelope-from ) for ; Tue, 16 Mar 2021 18:40:52 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id eHq8N7P7UGCJVAAAbx9fmQ (envelope-from ) for ; Tue, 16 Mar 2021 18:40:51 +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 67ADF204FD for ; Tue, 16 Mar 2021 19:40:51 +0100 (CET) Received: from localhost ([::1]:34854 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMEcc-0005d2-2W for larch@yhetil.org; Tue, 16 Mar 2021 14:40:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58900) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMEBi-00085T-Iw for guix-patches@gnu.org; Tue, 16 Mar 2021 14:13:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57685) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lMEBi-0005kb-BE for guix-patches@gnu.org; Tue, 16 Mar 2021 14:13:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lMEBi-0005ln-71 for guix-patches@gnu.org; Tue, 16 Mar 2021 14:13:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47163] [PATCH] doc: Add snippet for running 'guix refresh' on installed packages Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 16 Mar 2021 18:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47163 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Xinglu Chen Cc: 47163@debbugs.gnu.org Received: via spool by 47163-submit@debbugs.gnu.org id=B47163.161591837222163 (code B ref 47163); Tue, 16 Mar 2021 18:13:02 +0000 Received: (at 47163) by debbugs.gnu.org; 16 Mar 2021 18:12:52 +0000 Received: from localhost ([127.0.0.1]:40998 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMEBS-0005lK-7K for submit@debbugs.gnu.org; Tue, 16 Mar 2021 14:12:51 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37410) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMEBO-0005l5-ON for 47163@debbugs.gnu.org; Tue, 16 Mar 2021 14:12:44 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:42980) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMEBI-0005Kb-Hd; Tue, 16 Mar 2021 14:12:36 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=44280 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lME5F-0007b8-Vl; Tue, 16 Mar 2021 14:06:22 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <1b75951ffc583006980d809718e5cdc4fd1c3d37.1615911469.git.public@yoctocell.xyz> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 26 =?UTF-8?Q?Vent=C3=B4se?= an 229 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 16 Mar 2021 19:06:19 +0100 In-Reply-To: <1b75951ffc583006980d809718e5cdc4fd1c3d37.1615911469.git.public@yoctocell.xyz> (Xinglu Chen's message of "Tue, 16 Mar 2021 17:19:02 +0100") Message-ID: <877dm77z38.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=1615920051; 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-cc: 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=bXIvGBIMd4ceEEBoaPVeu9V6tob6cMwuM6eckXqMlWU=; b=sEIDcux7Ihzrlad2yep3WOqn9KC916ChMBsUQSI70Nn926JS0lfq+jtg0fmQugT6B0fTuE U9FCbacS+Wd8Q6leP+u/7To4C4FFFHpdo2bQj4BKy+US+aLFzCT5rhPZqIjNVI7vSinTWE +kwiJN8aak8zHxt43VeOMpOf6psHIKnyDV0sCqh+a8OR3GLB9M85mYC1Y1UyTUwqhGBj+B 1pU2lJ2T/Ev30KP6UUCHxSk6DgXAUvAq1u/+O/8FztshBXGmweRJtDxVThFZiIP+Dv/nRf 6XGt7HkKc6sxuEVrdPzaPOkdcsYxrJgE8Mn77UEl/FCuDaNjnNEwXydGMe/bLg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615920051; a=rsa-sha256; cv=none; b=N8D+GH1CksWvlx/EwpmbtzuFKF9jE9sfpQsbcvcJgLa8JiHPUxWsipzsgNscM63lFwySoC uNU1iYbOKjPHpd6Kc3ji4suW3kU/TAB1wlaxyxpjiXeynRKEKXrYFc7ubBcIwkPn7yoI/F a45i3wVnL3+6VllKWbeLTILb86aZPGJRovhuYp0Ir5AoamS2s99W0qo9XA4wX/cVsa2qTB hO6XbwUZeTjCrTeAkKiK8hFKsxs4SYNs+o3NdxG2oixZ8LscW02kvD2kTxttBqQFq/24kV WgFAUckWwjoq23zzRTewV3DXf4koAnt5rj9NshAS4Slj/00FKn9RLS/l14QZ9A== 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.90 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: 67ADF204FD X-Spam-Score: -2.90 X-Migadu-Scanner: scn0.migadu.com X-TUID: QbNbr+OChXmk 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. [...] > +You can also quickly update all the packages installed in the current > +profile with the following snippet: > + > +@example > +$ 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. Note that if you type this literally, it fails along these lines: --8<---------------cut here---------------start------------->8--- $ guix refresh -u grep Starting download of /tmp/guix-file.yLXS45 >From https://ftpmirror.gnu.org/gnu/grep/grep-3.6.tar.xz... following redirection to `https://gnu.mirror.constant.com/grep/grep-3.6.tar= .xz'... =E2=80=A66.tar.xz 1.5MiB 2.3MiB/s 00:01 [#############= #####] 100.0% Starting download of /tmp/guix-file.NgvvW4 >From https://ftpmirror.gnu.org/gnu/grep/grep-3.6.tar.xz.sig... following redirection to `https://mirrors.ocf.berkeley.edu/gnu/grep/grep-3.= 6.tar.xz.sig'... =E2=80=A6tar.xz.sig 833B 1.8MiB/s 00:00 [#############= #####] 100.0% gpgv: Signature made Mon 09 Nov 2020 05:40:03 AM CET gpgv: using RSA key 155D3FC500C834486D1EEA677FD9FCCB000BEEEE gpgv: Good signature from "Jim Meyering " gpgv: aka "Jim Meyering " gpgv: aka "Jim Meyering " gnu/packages/base.scm:99:12: grep: updating from version 3.4 to version 3.6= ... guix refresh: error: mkstemp!: Read-only file system --8<---------------cut here---------------end--------------->8--- So I think this example may be misleading. We could instead suggest ./pre-inst-env, with a link to =E2=80=9CRunning Guix Before It Is Installed= =E2=80=9D, and possibly mention the =E2=80=98--with-latest=E2=80=99 option as well. WDYT? Thanks, Ludo=E2=80=99.