From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: About /var/guix/profiles and guix pull generations Date: Wed, 19 Dec 2018 17:49:09 +0100 Message-ID: <87pntxwjga.fsf@ambrevar.xyz> References: <878t10xpam.fsf@ambrevar.xyz> <87wooj1fmx.fsf@gmail.com> <87efaqna9u.fsf@ambrevar.xyz> <87d0qana9e.fsf@ambrevar.xyz> <87k1kivmzt.fsf@ambrevar.xyz> <87lg4yz6gz.fsf@gmail.com> <87ftv523m2.fsf@ambrevar.xyz> <875zvqkz9b.fsf@gmail.com> <87d0pyvtvd.fsf@ambrevar.xyz> <87a7l1a3vv.fsf@gmail.com> <87bm5hv5v1.fsf@ambrevar.xyz> <878t0lv5pj.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]:33480) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gZf2G-0007Ce-5N for help-guix@gnu.org; Wed, 19 Dec 2018 11:49:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gZf26-0000kG-28 for help-guix@gnu.org; Wed, 19 Dec 2018 11:49:23 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:41329) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gZf20-0000eE-R2 for help-guix@gnu.org; Wed, 19 Dec 2018 11:49:14 -0500 In-reply-to: <878t0lv5pj.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 Here it is, simply including Chris initial review. I've sticked to "checkout", unless someone can come up with a better term. --=-=-= 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=20c4d5ded8e03e76b67daba2ea6050d7d3f6c9c1d8 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 | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/guix/scripts.scm b/guix/scripts.scm index 5e20ecd92..565a0a65c 100644 =2D-- a/guix/scripts.scm +++ b/guix/scripts.scm @@ -212,13 +212,20 @@ 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 pointed to by +the symlinks in /var/guix/gcroots/auto (broken symlinks in this +directory will be automatically removed).") + 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+LlsMPZAEJKvom9z0l6S7zH8FAlwadoUACgkQm9z0l6S7 zH8cnggAoMyRPF0bmlen9VWbM9otoLPw32IMWIpsGHahQQ0q95FTHQAs6/7VlUQG NKbTfdIHBV9M6d6AZTa31KkcCveg247VDkOZn0pWHtA+t3uFbmP138ccCL+ri4KZ WZ0lSbC8mdu/YbchPa2RC3WOwSl0IUT7K+ICsxTKF4OmJuwWVZqwowe72r0Tr16x GR1NqnJaF81nROc9xUNchqDe03uwv6OzGGfz3bcIYEMvLPyvE7GwCXDp/f8J6osm wVkxzF75uqHTULsHwmcCjlev+/lDQgegbKawVtyl4ZxJitgbWEYzX4d+/QVoR9pC LXYdXq7Y57ri/U9AmXP0wqOXXwB7lg== =WPjO -----END PGP SIGNATURE----- --==-=-=--