如何卸载Windows平台的berrybrew(Windows版perlbrew)?
Uninstalling berrybrew on Windows
Hey there, I’ve worked with berrybrew on Windows before, so I can walk you through a clean uninstall since the official docs don’t cover this. Your initial guess was on the right track, but there are a couple extra steps to make sure everything’s wiped properly:
- Shut down any running Perl processes that were launched via berrybrew. File locks from active instances can block you from deleting folders later.
- Delete the main berrybrew installation folder: If you picked a custom location during setup, navigate there and remove it. The default is typically something like
C:\Program Files\berrybrew. - Wipe the
C:\berrybrewstorage directory: This is where all the Perl distros managed by berrybrew live—you were correct that deleting this is key for a full reset. - Clean up your system’s environment variables: Berrybrew adds entries to your
Pathso you can run it from any command prompt, plus possibly aBERRYBREW_HOMEvariable. Here’s how to remove them:- Open Control Panel → System → Advanced System Settings → Environment Variables.
- Check both User Variables and System Variables sections:
- Find any
Pathentries pointing to berrybrew’sbinfolder and delete them. - Look for a
BERRYBREW_HOMEvariable (if it exists) and remove that too.
- Find any
- Double-check the uninstall: Open a brand new command prompt (old prompts keep cached environment variables) and run
berrybrew --version. If it throws an error saying the command isn’t recognized, you’re good to go.
If you only wanted to reset berrybrew instead of a full uninstall, you could skip deleting the main installation folder and just wipe C:\berrybrew + reset environment variables. But for a totally clean reinstall, follow all the steps above.
内容的提问来源于stack exchange,提问作者Stephen
相关产品推荐
相关产品推荐

