all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Bengt Richter <bokr@bokr.com>
To: Rostislav Svoboda <rostislav.svoboda@gmail.com>
Cc: 70215@debbugs.gnu.org
Subject: bug#70215: Documentation about uninstalling
Date: Sat, 13 Apr 2024 08:25:59 +0200	[thread overview]
Message-ID: <20240413062559.GA15939@LionPure> (raw)
In-Reply-To: <CAEtmmewouqjdqtJzzaea6CNZrnYu=DneqLjqePzwMASPumL-1A@mail.gmail.com>

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




  reply	other threads:[~2024-04-13  6:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-05  8:52 bug#70215: Documentation about uninstalling Shalok Shalom via Bug reports for GNU Guix
2024-04-11  0:08 ` Rostislav Svoboda
2024-04-11 12:36   ` bokr
2024-04-11 13:10     ` Rostislav Svoboda
2024-04-13  6:25       ` Bengt Richter [this message]
2024-05-07 18:55         ` Simon Tournier

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=20240413062559.GA15939@LionPure \
    --to=bokr@bokr.com \
    --cc=70215@debbugs.gnu.org \
    --cc=rostislav.svoboda@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.
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.