From: Csepp <raingloom@riseup.net>
To: "András Vöröskői" <voroskoi@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: fixing sticky package
Date: Mon, 18 Jul 2022 12:01:55 +0200 [thread overview]
Message-ID: <87cze2ag6e.fsf@riseup.net> (raw)
In-Reply-To: <CALxLQm_bWDiPJFckAMYdhcFrGdFOWOgRoUp7y9Kzo27aG+hOXQ@mail.gmail.com>
András Vöröskői <voroskoi@gmail.com> writes:
> Hi,
>
> I have done something like this:
> 1. I have zig@0.10 installed in my profile.
> 2. Started a guix shell -m guix.scm which has zig@0.9
> 3. Run zig version and it reported 0.10.0
> 4. guix remove zig@0.10
> 5. zig version still reports 0.10.0
>
> At that point I have switched to panic mode, exited from everything, but
> now when I run `guix package -I` it reports an only `zls` and `git-minimal`
> installed, which is fine.
> However when I run `which zig` it finds `zig` in /gnu/store.
>
> If I try to `guix remove zig` it says zig is not found in profile.
>
> How can I remove zig from my profile?
>
> Thanks,
guix shell runs a program (a shell by default) in a temporary
environment that has some packages added.
guix remove is an alias of guix package --remove, which works on
persistent stateful profiles, like ~/.guix-profile.
You told it to create a new profile generation with zig removed, which
it did. But that does not affect the temporary profile that was also
active.
To modify the list of packages in a guix shell profile, you can either
source additional search paths, or exit the guix shell and run it again
with a different manifest or package list.
prev parent reply other threads:[~2022-07-18 10:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-18 7:51 fixing sticky package András Vöröskői
2022-07-18 8:09 ` Ricardo Wurmus
2022-07-18 8:19 ` András Vöröskői
2022-07-18 9:53 ` Ricardo Wurmus
2022-07-24 14:33 ` András Vöröskői
2022-07-18 10:01 ` Csepp [this message]
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87cze2ag6e.fsf@riseup.net \
--to=raingloom@riseup.net \
--cc=help-guix@gnu.org \
--cc=voroskoi@gmail.com \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).