[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: delete profile
From: |
Alex Kost |
Subject: |
Re: delete profile |
Date: |
Tue, 14 Mar 2017 17:28:52 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
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
- delete profile, Federico Beffa, 2017/03/12
- Re: delete profile, Alex Kost, 2017/03/13
- Re: delete profile, Pjotr Prins, 2017/03/14
- Re: delete profile, Federico Beffa, 2017/03/14
- Re: delete profile, Alex Kost, 2017/03/14
- Re: delete profile, Federico Beffa, 2017/03/14
- Re: delete profile, Andy Wingo, 2017/03/15
- Re: delete profile, Ludovic Courtès, 2017/03/15
- Re: delete profile, Alex Kost, 2017/03/16
- Re: delete profile,
Alex Kost <=
- Re: delete profile, Pjotr Prins, 2017/03/14
- Re: delete profile, Alex Kost, 2017/03/16
- Re: delete profile, Pjotr Prins, 2017/03/16
Re: delete profile, Ludovic Courtès, 2017/03/14