From mboxrd@z Thu Jan 1 00:00:00 1970 From: Federico Beffa Subject: Re: delete profile Date: Tue, 14 Mar 2017 17:43:24 +0100 Message-ID: <87varbx103.fsf@lupo.i-did-not-set--mail-host-address--so-tickle-me> References: <87y3waqua6.fsf@lupo.i-did-not-set--mail-host-address--so-tickle-me> <877f3t9dgj.fsf@gmail.com> <20170314055518.GA12348@mail.thebird.nl> <87efy0mepb.fsf@lupo.i-did-not-set--mail-host-address--so-tickle-me> <87lgs8apsu.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44099) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cnpXk-0006Mk-Mf for guix-devel@gnu.org; Tue, 14 Mar 2017 12:43:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cnpXj-0003bf-Ng for guix-devel@gnu.org; Tue, 14 Mar 2017 12:43:28 -0400 Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]:37289) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cnpXj-0003bD-I6 for guix-devel@gnu.org; Tue, 14 Mar 2017 12:43:27 -0400 Received: by mail-wm0-x235.google.com with SMTP id n11so3752487wma.0 for ; Tue, 14 Mar 2017 09:43:27 -0700 (PDT) In-Reply-To: <87lgs8apsu.fsf@gmail.com> (Alex Kost's message of "Tue, 14 Mar 2017 17:36:17 +0300") 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: Alex Kost Cc: guix-devel@gnu.org Alex Kost writes: > Federico Beffa (2017-03-14 09:42 +0100) wrote: > >> Pjotr Prins writes: >> 'guix -p $HOME/guix-test-profile' lists only 1 generation (but I did >> create another one and then I rolled-back). >> >> I run 'guix gc' and now I find dangling symlinks in my $HOME. > > What dangling symlinks? Just remove them :-) Of this type: $HOME/guix-test-profile-XXX-link -> /gnu/store/... Yes, sure, I deleted them. It just seems strange that a GC leaves dangling links around. > >> One >> symlink is still active (the active generation) which imply that it is >> registered as a GC root. > > Look at /var/guix/gcroots/auto/ to see the registered GC roots, but > don't remove them manually, just remove the profile links you created, > then "guix gc" should clean the store from those profiles. > >> However, it's not in >> '/usr/local/var/guix/profiles' (I installed from source with the default >> prefix=/usr/local). > > this var/guix/profiles is only for system and per-user profiles. > Profiles that you create explicitly (with --profile option) are not > placed there. > >> Not sure where to find it. > > I'm not sure what you mean: the profiles you created with "guix package > -p $HOME/guix-test-profile -i ..." are in the store and the symlinks to > them are these "$HOME/guix-test-profile[-XXX-link]" links. Simply remove > these links and run "guix gc". As Pjotr suggested, I was expecting to have to delete a GC root somewhere. If this is not the case then the better. Thanks for the explanation. Fede