From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: About /var/guix/profiles and guix pull generations Date: Sun, 09 Dec 2018 14:38:30 +0100 Message-ID: <87k1kivmzt.fsf@ambrevar.xyz> References: <878t10xpam.fsf@ambrevar.xyz> <87wooj1fmx.fsf@gmail.com> <87efaqna9u.fsf@ambrevar.xyz> <87d0qana9e.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gVzI5-0007uN-4E for help-guix@gnu.org; Sun, 09 Dec 2018 08:38:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gVzI1-0002Az-11 for help-guix@gnu.org; Sun, 09 Dec 2018 08:38:37 -0500 Received: from relay12.mail.gandi.net ([217.70.178.232]:42003) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gVzI0-0002AA-PB for help-guix@gnu.org; Sun, 09 Dec 2018 08:38:32 -0500 In-reply-to: <87d0qana9e.fsf@ambrevar.xyz> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Chris Marusich Cc: help-guix --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain And here is my proposed patch. It's such a little thing, I'm posting here for context, I'll merge if no one is opposed to it. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-guix-scripts-Mention-Guix-checkouts-gcroots-auto-whe.patch Content-Transfer-Encoding: quoted-printable From=2056e88c25d7b327cd7aaee295b334280417f28aba Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Sun, 9 Dec 2018 14:33:17 +0100 Subject: [PATCH] guix scripts: Mention Guix checkouts + gcroots/auto when warning about disk space. * guix/scripts.scm (warn-about-disk-space): Mention Guix checkouts and gcroots/auto. =2D-- guix/scripts.scm | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/guix/scripts.scm b/guix/scripts.scm index 5e20ecd92..e85da99a3 100644 =2D-- a/guix/scripts.scm +++ b/guix/scripts.scm @@ -212,13 +212,19 @@ available." (* ratio 100) (%store-prefix)) (if profile (display-hint (format #f (G_ "Consider deleting old profile =2Dgenerations and collecting garbage, along these lines: +generations, deleting old Guix checkouts and collecting garbage, along the= se +lines: =20 @example =2Dguix package -p ~s --delete-generations=3D1m =2Dguix gc =2D@end example\n") =2D profile)) +guix package --profile=3D~s --delete-generations=3D1m +guix package --profile=3D~s --delete-generations=3D1m +guix gc --free-space=3D5G +@end example + +You might also want to delete old non-default profiles in +/var/guix/gcroots/auto.") + profile + (string-append (config-directory #:ensure?= #f) "/current"))) (display-hint (G_ "Consider running @command{guix gc} to free space.")))))) =20 =2D-=20 2.19.2 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlwNGtYACgkQm9z0l6S7 zH+irQf/YlxpTXZzt9GEKViOHaTj44+p5VI7JvdPAmLhbT48BbiIAHyAYt8E49hc I4j085hBmucDH/IF4LNZhSjB6h67/QMoDDzArjzKY+Y//Ujs4FcgJNbxPOIyIJIo 6jdTg+At8B80X1Ggft5RGwYMevPl+4Gzt/X3Gs//Uw4riTds0ePafeESV94lQPPO lsMyud2QtMLaqyYLhpKOXM1rbXM5g/cwiIDz05Hcz828LiEDkXofiIsW5GhMsRwG N1m+AYSvMR0qoBVYSujIlI/lk4c3d5uj8D4ymcq9APnetKWMXqJOPXzO4WCfW7s5 4PE0os46c1WMc2SLirb646h/IFo4hA== =aSvw -----END PGP SIGNATURE----- --==-=-=--