From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id SPMlEkj/UGDMUAAA0tVLHw (envelope-from ) for ; Tue, 16 Mar 2021 18:56:08 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id IDTaDUj/UGCDIwAAB5/wlQ (envelope-from ) for ; Tue, 16 Mar 2021 18:56:08 +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 DAEE2118DE for ; Tue, 16 Mar 2021 19:56:07 +0100 (CET) Received: from localhost ([::1]:42690 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMErO-0004GC-HA for larch@yhetil.org; Tue, 16 Mar 2021 14:56:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37348) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMEX3-00080p-6e for guix-patches@gnu.org; Tue, 16 Mar 2021 14:35:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57739) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lMEX1-0006ke-6i for guix-patches@gnu.org; Tue, 16 Mar 2021 14:35:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lMEX1-0008Sx-4K for guix-patches@gnu.org; Tue, 16 Mar 2021 14:35:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47163] [PATCH] doc: Add snippet for running 'guix refresh' on installed packages Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 16 Mar 2021 18:35:03 +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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 47163@debbugs.gnu.org Received: via spool by 47163-submit@debbugs.gnu.org id=B47163.161591965732443 (code B ref 47163); Tue, 16 Mar 2021 18:35:03 +0000 Received: (at 47163) by debbugs.gnu.org; 16 Mar 2021 18:34:17 +0000 Received: from localhost ([127.0.0.1]:41042 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMEWC-0008R7-UR for submit@debbugs.gnu.org; Tue, 16 Mar 2021 14:34:17 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:37168 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMEWB-0008Qu-6o for 47163@debbugs.gnu.org; Tue, 16 Mar 2021 14:34:12 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1615919643; bh=/jMrVtB69TzgVqjfQ0jSdGoWLpTk3rQIDOuc2whc+ro=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=ZVFj+tch0MFHbrcV9/9lBOf7l2BGrST/jNex9Quv/qvmxsaQuPS3IZExHLKRmX+Ur qdHdcrKr7lOfhOLd0NcGQ4BoBgxCXq1+mNy6rVuHJbDs7nXYe3QMAbL0pJGDjgMV2v 7knn6+IiA0BU5J4xaM2advPgOksFe4YEbBQHFPD4= In-Reply-To: <877dm77z38.fsf@gnu.org> References: <1b75951ffc583006980d809718e5cdc4fd1c3d37.1615911469.git.public@yoctocell.xyz> <877dm77z38.fsf@gnu.org> Date: Tue, 16 Mar 2021 19:34:02 +0100 Message-ID: <87h7lbrlr9.fsf@yoctocell.xyz> 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=1615920968; 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:dkim-signature; bh=GJXAyGRdlX9XFVENwhPIx4GkKr3y6VZW/n+ONnOxC+Y=; b=H+G7y9TFRIYn5nHV2uWzDGpZIn8MWkWMwOWpjw87+SFbFhXFogh4oHY1au9N+aFfQ8SNwC ZY+tRfxr59XyDIQ8vACb2zRVyQekq0RTqvGQIT2hPbVDgpUyVyCWLZZfTfOWq8RKNYraXr OXhGRvpk92+53cEfmDh3Nxan+kYVo2Wjwn/WL0sv0mhTfGZK6N+vbDM8hhG70J/4I0UdBI N9daqQxIAwqQD5QHWVp+TmrxyBDbeXgkMnJlBvxAbaZHqpK56WV2uVywNQLGwXL+6qFHOF yLjIsST7oLGW7neSwyp/v1SAi2IuicKJ6wEodoKXjPyR2kCgrhWy9lW6y2Yi5g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615920968; a=rsa-sha256; cv=none; b=Z6MSE58+Q0BAI8n+3yDhyDe9vtgIHZpcwQw+NGGcrFpobxtkas3MAQqlYKSrIbg6LfY+Bk 5HPA2WQj7D3c0lhs09puyk3Xa1iCXMSBJ/1Imsyf8kAfd8/WfYpelsYFXKy/qGYaDCwYda Sbb7IV6alfIVKpHyUmsbIllH9lrqmfLfgaB0Hkqm4bHDj72XWBGz5RoLDEbSBsIoFwAnE6 /f4VqJnLHsJZYOE+C6pdzxhjGOTwt7bXknicx4shBIDe46MX2cS01BKSos77x8p57vNFzo N5DQP/PwsN1KvVfuBNmfQWASH8UdtNpVw0alT1Rkrw3Lax+oBjcwrM2wvwboCQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=ZVFj+tch; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); 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: -1.30 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=ZVFj+tch; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); 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: DAEE2118DE X-Spam-Score: -1.30 X-Migadu-Scanner: scn0.migadu.com X-TUID: ZSBWHME9LbpK On Tue, Mar 16 2021, Ludovic Court=C3=A8s wrote: >> * doc/guix.texi (Invoking guix refresh): Add snippet that runs 'guix ref= resh' >> 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.t= ar.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 155D3FC500C834486D1EEA677FD9FCCB000BEE= EE > 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 Install= ed=E2=80=9D, > and possibly mention the =E2=80=98--with-latest=E2=80=99 option as well. > > WDYT? Sorry, I should have tested the command... When you say "--with-latest", do you mean `guix package -i grep --with-latest`?