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 uMNkBsBCB19aDAAA0tVLHw (envelope-from ) for ; Thu, 09 Jul 2020 16:16:00 +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 qEY3AsBCB18DYwAA1q6Kng (envelope-from ) for ; Thu, 09 Jul 2020 16:16:00 +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 5A85C940AFA for ; Thu, 9 Jul 2020 16:15:59 +0000 (UTC) Received: from localhost ([::1]:50874 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jtZDK-00084I-BE for larch@yhetil.org; Thu, 09 Jul 2020 12:15:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60088) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jtZD7-00082t-ER for help-guix@gnu.org; Thu, 09 Jul 2020 12:15:45 -0400 Received: from mout01.posteo.de ([185.67.36.65]:58876) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jtZD5-0002XO-Bs for help-guix@gnu.org; Thu, 09 Jul 2020 12:15:45 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 3D3C7160061 for ; Thu, 9 Jul 2020 18:15:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1594311340; bh=A2SI08ELx3sQ0gY6eAVZxYtWHM7TeEYXcE/QWzq3sn4=; h=From:To:Cc:Subject:Date:From; b=RG5YohqUcTDl3Uo/ICDHSCJ3zk1wqeMLNyqHlIQw1LE616KZdttlXvVjFjhsKlsK1 C/TEyBGE6UN8yW7KNUkBZUi83hRWlHJkQissey9XgXkFNFnQS2iYF9VwysZ+30WgON 2lNdZ8wBu2Z/ANbejswVyo70CW8OLUGt4X7q7UyNXWEf70f+325h7xrP7yqel3AmSc +z9v0wjwcqUYcFxLm8srzvHsqXvplHlSteLq4GFhiDy9H8kN3u03Ke/qDPY6s0T30u arCIPWXr1ztyHmvOWweXXQYeD0RXwmi0Ga5T9i4L65SckPxwcN6EquyMFSKAr5nUPC KjwY8rXD66V9w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4B2h9R1Slkz6tmN; Thu, 9 Jul 2020 18:15:39 +0200 (CEST) References: <87mu48brpl.fsf@dustycloud.org> User-agent: mu4e 1.4.10; emacs 26.3 From: Guillaume Le Vaillant To: Christopher Lemmer Webber Subject: Re: Best way to delete system profile generations? In-reply-to: <87mu48brpl.fsf@dustycloud.org> Date: Thu, 09 Jul 2020 18:15:37 +0200 Message-ID: <87fta07jh2.fsf@yamatai> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=185.67.36.65; envelope-from=glv@posteo.net; helo=mout01.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/09 11:00:00 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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: , 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=pass header.d=posteo.net header.s=2017 header.b=RG5YohqU; dmarc=pass (policy=none) header.from=posteo.net; 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.31 X-TUID: XcMpqlm4uP6g --=-=-= Content-Type: text/plain 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. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQQkUwKxurH4Z/3KlryPP4Yfgut6mgUCXwdCqQAKCRCPP4Yfgut6 msXCAP9T/30UKNzb+cijS2FF9gfy3DpKOO7KK9iOIXvz6Q6y8QD/RJGkdefkZOR/ ix/bJJ13gS3/Oqz9s+ItxU3+WZMD7QY= =QPXW -----END PGP SIGNATURE----- --=-=-=--