GNU bug report logs - #70215
Documentation about uninstalling

Previous Next

Package: guix;

Reported by: Shalok Shalom <shalokshalom <at> protonmail.ch>

Date: Fri, 5 Apr 2024 10:02:02 UTC

Severity: normal

To reply to this bug, email your comments to 70215 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#70215; Package guix. (Fri, 05 Apr 2024 10:02:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Shalok Shalom <shalokshalom <at> protonmail.ch>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Fri, 05 Apr 2024 10:02:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Shalok Shalom <shalokshalom <at> protonmail.ch>
To: "bug-guix <at> gnu.org" <bug-guix <at> gnu.org>
Subject: Documentation about uninstalling
Date: Fri, 05 Apr 2024 08:52:10 +0000
[Message part 1 (text/plain, inline)]
I have installed Guix with the script, and now cannot find the part of the documentation, that explains how to uninstall it.

Sicher versendet mit [Proton Mail](https://proton.me/).
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#70215; Package guix. (Thu, 11 Apr 2024 00:10:02 GMT) Full text and rfc822 format available.

Message #8 received at 70215 <at> debbugs.gnu.org (full text, mbox):

From: Rostislav Svoboda <rostislav.svoboda <at> gmail.com>
To: 70215 <at> debbugs.gnu.org
Subject: Re: Documentation about uninstalling
Date: Thu, 11 Apr 2024 02:08:35 +0200
Do you mean the guix-install.sh script? If so then what about the
https://guix.gnu.org/manual/devel/en/guix.html#index-uninstallation_002c-of-Guix
?




Information forwarded to bug-guix <at> gnu.org:
bug#70215; Package guix. (Thu, 11 Apr 2024 12:37:02 GMT) Full text and rfc822 format available.

Message #11 received at 70215 <at> debbugs.gnu.org (full text, mbox):

From: bokr <at> bokr.com
To: Rostislav Svoboda <rostislav.svoboda <at> gmail.com>
Cc: 70215 <at> debbugs.gnu.org
Subject: Re: bug#70215: Documentation about uninstalling
Date: Thu, 11 Apr 2024 14:36:21 +0200
On +2024-04-11 02:08:35 +0200, Rostislav Svoboda wrote:
> Do you mean the guix-install.sh script? If so then what about the
> https://guix.gnu.org/manual/devel/en/guix.html#index-uninstallation_002c-of-Guix
> ?
> 
> 
> 
It says (a bit reformatted):
┌────────────────────────────────────────────────────────────┐
│ Should you eventually want to uninstall Guix, run the same │
│ script with the --uninstall flag:                          │
│                                                            │
│ ./guix-install.sh --uninstall                              │
│                                                            │
│ With --uninstall, the script irreversibly deletes all the  │
│ Guix files, configuration, and services.                   │
└────────────────────────────────────────────────────────────┘

My 2 cents' worth:

That sounds dangerous -- what about putting all the deletions
in a TAR_DICT/TAR_FILE_NAME.tgz as a default, with suitable
default alternative commands for various capitalized names
in a (bash) select menu -- which could also include
    "Just do it, I know what --uninstall does")

--
Regards,
Bengt Richter





Information forwarded to bug-guix <at> gnu.org:
bug#70215; Package guix. (Thu, 11 Apr 2024 13:12:02 GMT) Full text and rfc822 format available.

Message #14 received at 70215 <at> debbugs.gnu.org (full text, mbox):

From: Rostislav Svoboda <rostislav.svoboda <at> gmail.com>
To: bokr <at> bokr.com
Cc: 70215 <at> debbugs.gnu.org
Subject: Re: bug#70215: Documentation about uninstalling
Date: Thu, 11 Apr 2024 15:10:56 +0200
> ./guix-install.sh --uninstall
> [...]
> That sounds dangerous

Yeah a bit.

> -- what about putting all the deletions
> in a TAR_DICT/TAR_FILE_NAME.tgz as a default, with suitable
> default alternative commands for various capitalized names
> in a (bash) select menu -- which could also include
>     "Just do it, I know what --uninstall does")

Eeeh? I don't understand what you mean.

Nevertheless, `./guix-install.sh --dry-run --uninstall` would be nice.
However the script is over 800 lines long. In bash! :-(
IMO before increasing script complexity with a new feature, we should
rewrite it to some reasonable language, preferably Guile Scheme. Or at
least Python.

Cheers Bost




Information forwarded to bug-guix <at> gnu.org:
bug#70215; Package guix. (Sat, 13 Apr 2024 06:27:02 GMT) Full text and rfc822 format available.

Message #17 received at 70215 <at> debbugs.gnu.org (full text, mbox):

From: Bengt Richter <bokr <at> bokr.com>
To: Rostislav Svoboda <rostislav.svoboda <at> gmail.com>
Cc: 70215 <at> debbugs.gnu.org
Subject: Re: bug#70215: Documentation about uninstalling
Date: Sat, 13 Apr 2024 08:25:59 +0200
On +2024-04-11 15:10:56 +0200, Rostislav Svoboda wrote:
> > ./guix-install.sh --uninstall
> > [...]
> > That sounds dangerous
> 
> Yeah a bit.
> 
> > -- what about putting all the deletions
> > in a TAR_DICT/TAR_FILE_NAME.tgz as a default, with suitable
> > default alternative commands for various capitalized names
> > in a (bash) select menu -- which could also include
> >     "Just do it, I know what --uninstall does")
> 
> Eeeh? I don't understand what you mean.
>

Sorry, I should have explained.

I just wanted a simple way to save /exactly/ what uninstall would delete.
so it wouldn't be "irrevocable," in case the uninstall is too eager about its job ;)

A dry run of that size would be a scrolling blur, I think, and not much use unless
captured, and then it would take a lot of boring unreliable reading before you could
decide for sure that  it was ok to do the uninstall.

Maybe guix pack could make a tarball of exactly what uninstall would delete, e.g.,
	guix pack --uninstall-victim-files

with options of where to write it.
 
> Nevertheless, `./guix-install.sh --dry-run --uninstall` would be nice.
> However the script is over 800 lines long. In bash! :-(
> IMO before increasing script complexity with a new feature, we should
> rewrite it to some reasonable language, preferably Guile Scheme. Or at
> least Python.
> 

Well, guix pack is already scheme, right? Why couldn't it invoke uninstall after
safely having completed packing the uninstall-victim-files ?

WDYT? Simon? Ludo? Anyone? :)

> Cheers Bost

--
Regards,
Bengt Richter




This bug report was last modified 21 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.