From patchwork Tue Mar 16 16:19:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xinglu Chen X-Patchwork-Id: 27887 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id CA45727BC54; Tue, 16 Mar 2021 16:20:19 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 75FF527BC52 for ; Tue, 16 Mar 2021 16:20:19 +0000 (GMT) Received: from localhost ([::1]:47908 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMCQc-00024Z-FB for patchwork@mira.cbaines.net; Tue, 16 Mar 2021 12:20:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41318) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMCQM-00021w-Cw for guix-patches@gnu.org; Tue, 16 Mar 2021 12:20:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57541) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lMCQM-0002Pv-4Z for guix-patches@gnu.org; Tue, 16 Mar 2021 12:20:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lMCQM-0002zu-0H for guix-patches@gnu.org; Tue, 16 Mar 2021 12:20:02 -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 16:20:01 +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: 47163@debbugs.gnu.org Cc: Ludovic =?utf-8?q?Court=C3=A8s?= Received: via spool by 47163-submit@debbugs.gnu.org id=B47163.161591155111457 (code B ref 47163); Tue, 16 Mar 2021 16:20:01 +0000 Received: (at 47163) by debbugs.gnu.org; 16 Mar 2021 16:19:11 +0000 Received: from localhost ([127.0.0.1]:40854 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMCPX-0002yi-BB for submit@debbugs.gnu.org; Tue, 16 Mar 2021 12:19:11 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:34312 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMCPV-0002yU-OM for 47163@debbugs.gnu.org; Tue, 16 Mar 2021 12:19:10 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1615911543; bh=vypHQW3wcKXrWaM69TCbVr9ztVAeWEi3TbpUKB28LEo=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=uqF3r/yVi2IUA2u8V31/y/SHMzyq/Q799mIL/vhGiCFMXfjCrw+i7egcri8U+Sq4u /49zujYElAXVlfqJeEvRTxHmN6yZflB8MQ3CLeEPpxcZEX4UKMv9o2ijxjm5IDPSXz Ceyt52cUqnMr8jZ6gN7Lfi2lZpwUlqdVwbmxtG3Y= In-Reply-To: References: Message-Id: <1b75951ffc583006980d809718e5cdc4fd1c3d37.1615911469.git.public@yoctocell.xyz> Date: Tue, 16 Mar 2021 17:19:02 +0100 MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * doc/guix.texi (Invoking guix refresh): Add snippet that runs 'guix refresh' on all the packages installed in the current profile. --- doc/guix.texi | 10 ++++++++++ 1 file changed, 10 insertions(+) base-commit: 266d55dc3080475544bf45e72359c9b9bbcecd53 diff --git a/doc/guix.texi b/doc/guix.texi index 3e7ffc81bc..752dce9072 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -11722,6 +11722,16 @@ @code{idutils} packages. 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 +$ 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. + When considering whether to upgrade a package, it is sometimes convenient to know which packages would be affected by the upgrade and should be checked for compatibility. For this the following option may