From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: guix gc, any way to delete only packages that aren't required to build anything? Date: Fri, 30 Nov 2018 09:54:27 +0100 Message-ID: <87a7lrgd30.fsf@ambrevar.xyz> References: <20181129210707.3dbf5f5a@mailbox.org> <878t1b2lj1.fsf@elephly.net> 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]:54848) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSeZH-0001Qo-IV for help-guix@gnu.org; Fri, 30 Nov 2018 03:54:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSeZE-0008O6-Bi for help-guix@gnu.org; Fri, 30 Nov 2018 03:54:35 -0500 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:51397) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gSeZD-0008NI-Pe for help-guix@gnu.org; Fri, 30 Nov 2018 03:54:32 -0500 In-reply-to: <878t1b2lj1.fsf@elephly.net> 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: Ricardo Wurmus Cc: "help-guix@gnu.org" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable I've been bugged by this as well (see https://lists.gnu.org/archive/html/help-guix/2018-09/msg00028.html). There= are a few options beside Ricardo's suggestion: =2D You can start the Guix daemon with --gc-keep-outputs (see "(guix) Invok= ing guix-daemon" in the manual). This will never delete anything that is sti= ll required, but this leads to an ever-growing store. If you've got limited storage space, you might not want this. =2D The Emacs mode guix.el has a nice interface for listing store items, in particular dead items. You can sort item by size, check the number of referrers, etc. This is much, much faster than you bash script and should suit your needs most of the time. If you don't use Emacs, you can have s= till run it in batch mode or simply re-use the Scheme code to write your own G= uile script. Hope that helps! =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlwA+sMACgkQm9z0l6S7 zH/jWQgAqKyNmJDECs1up9YrGiNoDuzQ3OGI2+fkbRc7gvT04YUkBJptKnhEAchL ihYRSZumlGNEMAKpr6w4RXVTLwIEPQCcFY+fbLBJybAbZAHBuvCN8F8h5ikKZxhm vplZyHb0/Npvv4WRwBlwMXckOvSqoUDB8jtaOVYSYhCu9pKokpxwMmcKyFmHSxPM KdTVYzEyQuFhJ3bYnHDUFpCZsq0gUKXnb614lwTY4ipwJ41mHCtEAf7zIpPg8xEK LQh+ojMi80KSrSEXT7hY5R3XeocS5TjyM/277QgStI+q1yjW25+LF4q1iXgzX1NL GzItJ5YYk6RAs5la9hsXDkOM8OtiIQ== =VDMx -----END PGP SIGNATURE----- --=-=-=--