3

I have been running berrybrew on Windows (here's the home page and GitHub repository). I'm having some trouble with it and I want to uninstall and reinstall it, but I can't figure out how to do that.

I am hoping it is as simple as just deleting the directory where it was installed and C:\berrybrew, which is where it seems to keep files, but I don't know for sure. The instructions contain installation instructions, but no uninstallation instructions.

Stephen
  • 8,508
  • 12
  • 56
  • 96

1 Answers1

4

Disclaimer: berrybrew author here...

To uninstall and return your system back to default:

  • berrybrew off
  • berrybrew unconfig
  • then delete the directory you downloaded it to, as well as the installation directory (by default, C:\berrybrew)
  • Edit your PATH variable to remove any entries that start with C:\berrybrew (or the base install directory if you've changed it from the default). One of the path entries will point to C:\berrybrew\bin, and there may be one more that points to the currently in-use Perl installation (also under C:\berrybrew\...). Technically speaking, there shouldn't be any after the first two commands are run, but one should always verify

Essentially, there's really nothing to "uninstall". It comes down to removing $ENV{PATH} ie. specific environment variables that point to a) berrybrew.exe binary itself, and b) the Perl installation that you last used.

I will update the documentation to provide more clarity in this regard.

stevieb
  • 9,065
  • 3
  • 26
  • 36
  • Thanks. Can you add some instructions here about what specifically to remove from the path variables? – Stephen May 16 '18 at 13:47
  • Any entries that start with `C:\berrybrew` (or the base install directory if you've changed it from the default). One of the path entries will point to `c:\berrybrew\bin`, and there may be one more that points to the currently in-use Perl installation (also under `C:\berrybrew\...`). – stevieb May 16 '18 at 16:33
  • 1
    Thanks. I added that as a step in your post. – Stephen May 16 '18 at 16:46
  • @Stephen I greatly appreciate your patience here. 'berrybrew' has been a massive undertaking to say the least, and I had to learn the C# language to ensure its existence. Merci beaucoup. – stevieb May 17 '18 at 00:09
  • Thank YOU! berrybrew is awesome. – Stephen May 17 '18 at 14:29