From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id pupeLxpAB1+ncwAA0tVLHw (envelope-from ) for ; Thu, 09 Jul 2020 16:04:42 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 8Zu3KhpAB1/yCwAAB5/wlQ (envelope-from ) for ; Thu, 09 Jul 2020 16:04:42 +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 01F40940BC9 for ; Thu, 9 Jul 2020 16:04:41 +0000 (UTC) Received: from localhost ([::1]:56348 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jtZ2N-0006ck-Ax for larch@yhetil.org; Thu, 09 Jul 2020 12:04:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56416) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jtZ1w-0006ap-Qp for help-guix@gnu.org; Thu, 09 Jul 2020 12:04:18 -0400 Received: from dustycloud.org ([50.116.34.160]:46104) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jtZ1s-0000sa-Mb for help-guix@gnu.org; Thu, 09 Jul 2020 12:04:12 -0400 Received: from twig (localhost [127.0.0.1]) by dustycloud.org (Postfix) with ESMTPS id 4A3AB26617 for ; Thu, 9 Jul 2020 12:04:07 -0400 (EDT) User-agent: mu4e 1.4.9; emacs 26.3 From: Christopher Lemmer Webber To: help-guix@gnu.org Subject: Best way to delete system profile generations? Date: Thu, 09 Jul 2020 12:04:06 -0400 Message-ID: <87mu48brpl.fsf@dustycloud.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=50.116.34.160; envelope-from=cwebber@dustycloud.org; helo=dustycloud.org X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/09 12:04:07 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham 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: , 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: -0.01 X-TUID: 3q0wOKqZywPT 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