all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alex Kost <alezost@gmail.com>
To: Pjotr Prins <pjotr.public12@thebird.nl>
Cc: guix-devel@gnu.org, Federico Beffa <beffa@ieee.org>
Subject: Re: delete profile
Date: Tue, 14 Mar 2017 17:28:52 +0300	[thread overview]
Message-ID: <87pohkaq57.fsf@gmail.com> (raw)
In-Reply-To: <20170314055518.GA12348@mail.thebird.nl> (Pjotr Prins's message of "Tue, 14 Mar 2017 05:55:18 +0000")

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…-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.

-- 
Alex

  parent reply	other threads:[~2017-03-14 14:28 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-12 17:28 delete profile Federico Beffa
2017-03-13 19:35 ` Alex Kost
2017-03-14  5:55   ` Pjotr Prins
2017-03-14  8:42     ` Federico Beffa
2017-03-14 14:36       ` Alex Kost
2017-03-14 16:43         ` Federico Beffa
2017-03-15 11:09           ` Andy Wingo
2017-03-15 16:00             ` Ludovic Courtès
2017-03-16  9:13           ` Alex Kost
2017-03-14 14:28     ` Alex Kost [this message]
2017-03-14 15:18       ` Pjotr Prins
2017-03-16  9:13         ` Alex Kost
2017-03-16 12:18           ` Pjotr Prins
2017-03-14 13:26 ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pohkaq57.fsf@gmail.com \
    --to=alezost@gmail.com \
    --cc=beffa@ieee.org \
    --cc=guix-devel@gnu.org \
    --cc=pjotr.public12@thebird.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.