all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to remove guix
@ 2021-01-14 13:34 Mick Sulley
  2021-01-14 20:15 ` Julien Lepiller
  2021-01-14 20:28 ` Tobias Geerinckx-Rice
  0 siblings, 2 replies; 8+ messages in thread
From: Mick Sulley @ 2021-01-14 13:34 UTC (permalink / raw)
  To: help-guix

I am having real problems with Unison, I installed via Guix and it is 
not working so I want to remove it and try with an apt install.

I have run

     guix package -r unison

and it seems to work, I have also installed unison with

     sudo apt install unison

and that seemed to work as well but then I see

mick@holly:~$ unison -version
-bash: /home/mick/.guix-profile/bin/unison: No such file or directory
mick@holly:~$

so it is looking for the guix version and not seeing the standard apt 
install.  So

1) How can I get it to look for the standard version rather than the 
guix version

2) How can I remove guix completely?  I have searched on-line and cannot 
see anything on this.

My PATH is

mick@holly:~$ echo $PATH
/home/mick/.guix-profile/bin:/home/mick/.config/guix/current/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
mick@holly:~$

Thanks

Mick



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to remove guix
  2021-01-14 13:34 How to remove guix Mick Sulley
@ 2021-01-14 20:15 ` Julien Lepiller
  2021-01-14 20:28 ` Tobias Geerinckx-Rice
  1 sibling, 0 replies; 8+ messages in thread
From: Julien Lepiller @ 2021-01-14 20:15 UTC (permalink / raw)
  To: help-guix, Mick Sulley



Le 14 janvier 2021 08:34:33 GMT-05:00, Mick Sulley <mick@sulley.info> a écrit :
>I am having real problems with Unison, I installed via Guix and it is 
>not working so I want to remove it and try with an apt install.
>
>I have run
>
>     guix package -r unison
>
>and it seems to work, I have also installed unison with
>
>     sudo apt install unison
>
>and that seemed to work as well but then I see
>
>mick@holly:~$ unison -version
>-bash: /home/mick/.guix-profile/bin/unison: No such file or directory
>mick@holly:~$
>
>so it is looking for the guix version and not seeing the standard apt 
>install.  So
>
>1) How can I get it to look for the standard version rather than the 
>guix version

I think your issue is that bash keeps a cache of binary locations. You can try in a new terminal, or after running "hash unison" (no output if all goes well). Then you should be able to run the unison from apt.

>2) How can I remove guix completely?  I have searched on-line and
>cannot 
>see anything on this.

You should remove /gnu, /var/guix, ~/.guix-profile and ~/.config/guix. Possibly some symlinks from /usr/local too.

>
>My PATH is
>
>mick@holly:~$ echo $PATH
>/home/mick/.guix-profile/bin:/home/mick/.config/guix/current/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
>mick@holly:~$
>
>Thanks
>
>Mick


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to remove guix
  2021-01-14 13:34 How to remove guix Mick Sulley
  2021-01-14 20:15 ` Julien Lepiller
@ 2021-01-14 20:28 ` Tobias Geerinckx-Rice
  2021-01-14 20:46   ` zimoun
  1 sibling, 1 reply; 8+ messages in thread
From: Tobias Geerinckx-Rice @ 2021-01-14 20:28 UTC (permalink / raw)
  To: Mick Sulley; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 808 bytes --]

Mick,

Mick Sulley 写道:
> 1) How can I get it to look for the standard version rather than 
> the
> guix version

There isn't a more or less standard version, just bash caching the 
last used binary.  Use ‘hash -r’ to clear bash's cache and make it 
look again.

> My PATH is

(So $PATH isn't used at all once you've run unison in the same 
shell.)

>> 2) How can I remove guix completely?  I have searched on-line 
>> and
> cannot see anything on this.

Off the top of my head: remove

  ~/.config/guix
  ~/.cache/guix
  ~/.guix-profile
  /gnu
  /var/guix
  /var/log/guix

Also take a look at the installer script[0] to see what it creates 
and what you can remove.

Good luck,

T G-R

[0]: 
https://git.savannah.gnu.org/cgit/guix.git/tree/etc/guix-install.sh

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to remove guix
  2021-01-14 20:28 ` Tobias Geerinckx-Rice
@ 2021-01-14 20:46   ` zimoun
  0 siblings, 0 replies; 8+ messages in thread
From: zimoun @ 2021-01-14 20:46 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: help-guix

Hi,

To remove Guix completely:

>   ~/.config/guix
>   ~/.cache/guix
>   ~/.guix-profile
>   /gnu
>   /var/guix
>   /var/log/guix

/etc/init/guix-daemon.conf
/etc/systemd/system/guix-daemon.service
/etc/systemd/system-store.mount
/etc/init.d/guix-daemon
/usr/local/bin/guix
/usr/local/share/info/guix*
/etc/profile.d/guix.sh

Remove the guixbuilder${i} user and th guixbuild group too.  Maybe
some bits more depending which guix-install.sh you used to install
Guix.

> Also take a look at the installer script[0] to see what it creates
> and what you can remove.

See also this patch: http://issues.guix.gnu.org/issue/42379


Hope that helps,
simon


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to remove guix
       [not found] <mailman.25584.1610655397.19111.help-guix@gnu.org>
@ 2021-01-15 12:57 ` Zelphir Kaltstahl
  2021-01-21 12:26   ` Pierre Neidhardt
  0 siblings, 1 reply; 8+ messages in thread
From: Zelphir Kaltstahl @ 2021-01-15 12:57 UTC (permalink / raw)
  To: mick; +Cc: help-guix

Hello Mick,

I once messed up my Guix installation, by not using sudo -i when trying
to update the root profile, so I had to go through removing it as well.
I wrote down all the things I removed though:

https://notabug.org/ZelphirKaltstahl/guix-package-manager-tutorials/raw/master/uninstall.org:

~~~~
   rm --recursive --force /gnu/store || true;
   rm --recursive --force /var/guix || true;
   rm --recursive --force ~/.guix-profile || true;
   rm --recursive --force ~/.config/guix || true;
   rm --recursive --force /etc/guix/profile/config.scm || true;
   rm --recursive --force /tmp/guix.* || true;
   rm --recursive --force /home/xiaolong/.cache/guix || true;
   rm --recursive --force /root/.cache/guix/ || true;
   rm --recursive --force /root/.cache/guile/ || true;
   rm --recursive --force /var/log/guix || true;
   rm --recursive --force /root/.config/guix || true;
   rm --recursive --force /etc/systemd/system/guix-daemon.service || true;
   rm --recursive --force /etc/guix || true;
   rm --recursive --force /usr/local/bin/guix || true;
   rm --recursive --force /etc/systemd/system/multi-user.target.wants/guix-daemon.service || true;
   rm --recursive --force /usr/local/share/info/guix.* || true;
   rm --recursive --force /tmp/guix.Mgm || true;
   # all of the above does not help
   # you need to do also the following
   rm --recursive --force /var/guix || true;
   rm --recursive --force /gnu || true;
~~~~

This does not include the users or groups. Perhaps I did not uninstall
those, because I wanted to install it again afterwards.

Also (!) check all location first, to be sure you are not deleting
anything you still need.

Also: If any of this is not correct or damaging, please people correct
me : )

Regards,
Zelphir

On 1/14/21 9:16 PM, help-guix-request@gnu.org wrote:
> Message: 6
> Date: Thu, 14 Jan 2021 13:34:33 +0000
> From: Mick Sulley <mick@sulley.info>
> To: help-guix@gnu.org
> Subject: How to remove guix
> Message-ID: <e61e6f98-a0f5-5cb2-153c-076395af26ae@sulley.info>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> I am having real problems with Unison, I installed via Guix and it is 
> not working so I want to remove it and try with an apt install.
>
> I have run
>
>      guix package -r unison
>
> and it seems to work, I have also installed unison with
>
>      sudo apt install unison
>
> and that seemed to work as well but then I see
>
> mick@holly:~$ unison -version
> -bash: /home/mick/.guix-profile/bin/unison: No such file or directory
> mick@holly:~$
>
> so it is looking for the guix version and not seeing the standard apt 
> install.  So
>
> 1) How can I get it to look for the standard version rather than the 
> guix version
>
> 2) How can I remove guix completely?  I have searched on-line and cannot 
> see anything on this.
>
> My PATH is
>
> mick@holly:~$ echo $PATH
> /home/mick/.guix-profile/bin:/home/mick/.config/guix/current/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
> mick@holly:~$
>
> Thanks
>
> Mick

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to remove guix
  2021-01-15 12:57 ` Zelphir Kaltstahl
@ 2021-01-21 12:26   ` Pierre Neidhardt
  2021-01-21 13:06     ` zimoun
  0 siblings, 1 reply; 8+ messages in thread
From: Pierre Neidhardt @ 2021-01-21 12:26 UTC (permalink / raw)
  To: Zelphir Kaltstahl, mick; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 355 bytes --]

Hi!

Thanks for sharing, this is very helpful.

Shouldn't Guix include an uninstaller then?  Looks like it would be
handy :)

I can't find any instructions in the manual either.  Am I missing
something or should we update the manual?
Providing an uninstaller would hit two birds with one stone ;)

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 511 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to remove guix
  2021-01-21 12:26   ` Pierre Neidhardt
@ 2021-01-21 13:06     ` zimoun
  2021-01-21 14:14       ` Pierre Neidhardt
  0 siblings, 1 reply; 8+ messages in thread
From: zimoun @ 2021-01-21 13:06 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: help-guix, Zelphir Kaltstahl

Hi Pierre,

On Thu, 21 Jan 2021 at 13:26, Pierre Neidhardt <mail@ambrevar.xyz> wrote:

> Shouldn't Guix include an uninstaller then?  Looks like it would be
> handy :)

There is a patch from Wed, 15 Jul 2020 waiting review about an
uninstaller script:

<http://issues.guix.gnu.org/issue/42379>


Cheers,
simon


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to remove guix
  2021-01-21 13:06     ` zimoun
@ 2021-01-21 14:14       ` Pierre Neidhardt
  0 siblings, 0 replies; 8+ messages in thread
From: Pierre Neidhardt @ 2021-01-21 14:14 UTC (permalink / raw)
  To: zimoun; +Cc: help-guix, Zelphir Kaltstahl

[-- Attachment #1: Type: text/plain, Size: 70 bytes --]

Thanks for the link!

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 511 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-01-21 14:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-14 13:34 How to remove guix Mick Sulley
2021-01-14 20:15 ` Julien Lepiller
2021-01-14 20:28 ` Tobias Geerinckx-Rice
2021-01-14 20:46   ` zimoun
     [not found] <mailman.25584.1610655397.19111.help-guix@gnu.org>
2021-01-15 12:57 ` Zelphir Kaltstahl
2021-01-21 12:26   ` Pierre Neidhardt
2021-01-21 13:06     ` zimoun
2021-01-21 14:14       ` Pierre Neidhardt

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.