From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Vong Subject: Re: Remove all "unreachable" objects in store Date: Wed, 18 Jan 2017 21:58:29 +0800 Message-ID: <87a8aompve.fsf@gmail.com> References: <587F6AD1.2070104@crazy-compilers.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35058) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTqlG-0007kQ-9z for guix-devel@gnu.org; Wed, 18 Jan 2017 08:58:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cTqlD-00016R-22 for guix-devel@gnu.org; Wed, 18 Jan 2017 08:58:50 -0500 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]:34865) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cTqlC-00015p-SF for guix-devel@gnu.org; Wed, 18 Jan 2017 08:58:46 -0500 Received: by mail-pf0-x243.google.com with SMTP id f144so1210719pfa.2 for ; Wed, 18 Jan 2017 05:58:45 -0800 (PST) In-Reply-To: <587F6AD1.2070104@crazy-compilers.com> (Hartmut Goebel's message of "Wed, 18 Jan 2017 14:17:05 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Hartmut Goebel Cc: guix-devel --=-=-= Content-Type: text/plain Hello, Hartmut Goebel writes: > Hi, > > when packaging software, the store fills up with intermediate versions. > I would like to get rid of these. > > My "production" environment typically lags behind the development head > quite some releases. So if I run `guix gc`, this would remove quite a > lot of packages which will then be rebuild just afterwards, when I build > the next package. Some of these are quite big, e.g. numpy or glibc. > > So I'd like to garbage collect all packages which are no longer current, > for which there is no longer a way to build them. > > Any ideas? You can add '--gc-keep-outputs=yes' and '--gc-keep-derivations=yes' flags to guix-daemon in 'guix-daemon.service' (assume you are using systemd as init). The relevant info can be found in . Hope it helps, it was the question I asked on this list in the past! --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEdZDkzSn0Cycogr9IxYq4eRf1Ea4FAlh/dIYACgkQxYq4eRf1 Ea7vYg/7BLhD/TDIucavnNZWnQQR2wRGPUxxhmJaQqW/fe73vCAo61Vr/wHpxq9N r11vY7ZHs/htOnNLO0asEJYtHkx60YK4etHLeNC3jEisGhOoOW3V8Vy38ERlcKPv k8q8uZlsW5YaKrzDfEPVONP8hEwslt8swOBRvLeFnuJHxUJmpDWVflGBywPMDBJ1 UUdGDScFmi0VZshrI63TvuJCEcsxn97A3czhlgjxgi2GBQBTLAgib7sd6/TApM91 QBjiM0otU3lXAqO4TJXF/a/jVIvwLQddZw43ez3pIOYxGubngeLZGfapucT6JKcd le1TC2FTYV9T/5iMbyCUqDdexo5cPKOPc81hSuSU3lWyuFjNOKHzbk1Z9wtWfRty OvXArknvRr774DpgdXquRTrfblKHJLIyUM0a5K0NvMTslrKEQL3cu7bVm8MeTyb7 eR7vagZRM3kNEPmOawkLmF3ylspzpGjSZVTRSiSYWSNDbSeB50hPcZ0s99I2a4Lw Qwk3lSDbrz0ScR/aV8ZL97b6K4dPxU5U+4gsM4HyemQCvohVKiB47x6zJIV8ZoPn wgwQAJHPtG9nw+A6Es2VlUH7H4IxIF6F1GBCvYnNLdipu7hewwOYgjEMJcDOtuAG FDtXMvNEkWgOVuYwOT8MwiVmwZQwWVVJpwOby651UkjR7Z88enc= =RI9p -----END PGP SIGNATURE----- --=-=-=--