From mboxrd@z Thu Jan 1 00:00:00 1970 From: iyzsong@member.fsf.org (=?utf-8?B?5a6L5paH5q2m?=) Subject: Re: How to remove old (test) builds from store? Date: Thu, 02 Jun 2016 19:10:12 +0800 Message-ID: <87k2i7q223.fsf@member.fsf.org> References: <575006ED.6000607@crazy-compilers.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51851) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8QWE-0000tH-35 for help-guix@gnu.org; Thu, 02 Jun 2016 07:10:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b8QW9-00020A-S7 for help-guix@gnu.org; Thu, 02 Jun 2016 07:10:28 -0400 Received: from mail2.openmailbox.org ([62.4.1.33]:36032) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8QW9-0001z9-LV for help-guix@gnu.org; Thu, 02 Jun 2016 07:10:25 -0400 In-Reply-To: <575006ED.6000607@crazy-compilers.com> (Hartmut Goebel's message of "Thu, 2 Jun 2016 12:14:05 +0200") 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: Hartmut Goebel Cc: help-guix@gnu.org Hartmut Goebel writes: > Hi, > > when creating packages and refining the build step by step, I end up > with many entries in the store I do not need. When tying to delete them, > only a few are removed and many are kept. E.g: > > > # guix gc -d /gnu/store/*teensy* > finding garbage collector roots... > deleting `/gnu/store/=E2=80=A6-teensy-loader-cli-2.1-1.f289b7a.drv' > deleting `/gnu/store/=E2=80=A6-teensy-loader-cli-2.1-1.f289b7a.tar.xz.drv' > guix gc: error: build failed: cannot delete path > `/gnu/store/=E2=80=A6-teensy-loader-cli-2.1-1.f289b7a.tar.gz.drv' since i= t is > still alive > $ ls -d /gnu/store/*teensy* | wc -l > 35 > > The one still alive if okay, since I have an older version of this > package installed in my current environment. > > > How do I get rid of these ca. 30 outdated store items? I think call gc for each one will work, eg: for i in /gnu/store/*teensy*; do guix gc -d $i; done