From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 4C5SHOp5CF95QwAA0tVLHw (envelope-from ) for ; Fri, 10 Jul 2020 14:23:38 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id UFQ+GOp5CF98bwAA1q6Kng (envelope-from ) for ; Fri, 10 Jul 2020 14:23:38 +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 856C6940ED3 for ; Fri, 10 Jul 2020 14:23:37 +0000 (UTC) Received: from localhost ([::1]:34868 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jttw6-0004bt-NN for larch@yhetil.org; Fri, 10 Jul 2020 10:23:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41380) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jttvu-0004Ze-3u for help-guix@gnu.org; Fri, 10 Jul 2020 10:23:22 -0400 Received: from dustycloud.org ([2600:3c02::f03c:91ff:feae:cb51]:35446) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jttvs-0004Rd-Kq for help-guix@gnu.org; Fri, 10 Jul 2020 10:23:21 -0400 Received: from twig (localhost [127.0.0.1]) by dustycloud.org (Postfix) with ESMTPS id 2C2242662F; Fri, 10 Jul 2020 10:23:17 -0400 (EDT) References: <87mu48brpl.fsf@dustycloud.org> <87fta07jh2.fsf@yamatai> User-agent: mu4e 1.4.9; emacs 26.3 From: Christopher Lemmer Webber To: Guillaume Le Vaillant Subject: Re: Best way to delete system profile generations? In-reply-to: <87fta07jh2.fsf@yamatai> Date: Fri, 10 Jul 2020 10:23:16 -0400 Message-ID: <87d053a1pn.fsf@dustycloud.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2600:3c02::f03c:91ff:feae:cb51; envelope-from=cwebber@dustycloud.org; helo=dustycloud.org X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: 14 X-Spam_score: 1.4 X-Spam_bar: + X-Spam_report: (1.4 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: 2.79 X-TUID: QW1aWY57ml03 Guillaume Le Vaillant writes: > Christopher Lemmer Webber skribis: > >> Hello! I wonder what others do to delete their system profile >> generations? Here are some paths I know about. >> >> Path one: using the command line manually >> >> # Look at which profiles are available >> ls -l /var/guix/profiles/ >> # Remove them manually >> rm /var/guix/profiles/system-{9,10,11}-link >> >> Path two: using emacs, but you gotta do it as root so: >> >> # start up emacs as root, with the system generations listed: >> sudo -E emacs -nw -q --eval "(progn (require 'guix) (guix-system-generations))" >> >> # Now you can browse the generations with more information available, >> # decide with a bit more care which ones to remove. >> # Mark each one you want to remove with "D", and delete with "x". >> >> Is there a better way? What do others do? It doesn't seem there's a >> good way to delete from my current emacs session because it requires >> root privileges. >> >> guix-mode remains great, btw! >> >> - Chris > > There is the "guix system delete-generations ..." command which I think > does what you're looking for. Ah, I didn't know about that command somehow! Thank you!