From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: delete profile Date: Tue, 14 Mar 2017 17:28:52 +0300 Message-ID: <87pohkaq57.fsf@gmail.com> References: <87y3waqua6.fsf@lupo.i-did-not-set--mail-host-address--so-tickle-me> <877f3t9dgj.fsf@gmail.com> <20170314055518.GA12348@mail.thebird.nl> 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]:49562) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cnnRZ-00045w-BW for guix-devel@gnu.org; Tue, 14 Mar 2017 10:28:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cnnRW-0002LF-Li for guix-devel@gnu.org; Tue, 14 Mar 2017 10:28:57 -0400 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]:35417) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cnnRW-0002Ju-EY for guix-devel@gnu.org; Tue, 14 Mar 2017 10:28:54 -0400 Received: by mail-lf0-x241.google.com with SMTP id v2so14236690lfi.2 for ; Tue, 14 Mar 2017 07:28:54 -0700 (PDT) In-Reply-To: <20170314055518.GA12348@mail.thebird.nl> (Pjotr Prins's message of "Tue, 14 Mar 2017 05:55:18 +0000") 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: Pjotr Prins Cc: guix-devel@gnu.org, Federico Beffa Pjotr Prins (2017-03-14 05:55 +0000) wrote: > On Mon, Mar 13, 2017 at 10:35:56PM +0300, Alex Kost wrote: >> Federico Beffa (2017-03-12 18:28 +0100) wrote: >> >> > Hi, >> > >> > I've created a profile for test purposes with >> > >> > guix package -p $HOME/guix-test-profile -m test-manifest.scm >> > >> > that now I would like to delete. I've looked up the documentation but >> > not found any suitable command. What's the recommended procedure to >> > delete it? >> >> I would simply remove it and all its generations >> ("$HOME/guix-test-profile-XX-link") manually. I don't know if there is >> any recommended way to do it though. > > That removes the symlinks to a directory in /var/guix/profiles. No, "$HOME/guix-test-profile" was not a symlink to "/var/guix/profiles/...". Try this: guix package --no-grafts -i hello -p /tmp/test-profile ls -l /tmp/test-profile* As you can see, now there is "/tmp/test-profile" which points to a single generation which points to "/gnu/store=E2=80=A6-profile". > I think you also need to remove the links in the latter if you want > the garbage collection to work. > > Is that correct? No, as you can see "/var/guix/profiles/..." was not modified in any way. So removing "/tmp/test-profile*" links should be enough; next time "guix gc" will remove the store entries for the created profile. --=20 Alex