How can I completely uninstall perlbrew?

David B picture David B · Sep 18, 2010 · Viewed 9.9k times · Source

I'm lovin' it, but I suspect it causes some problem. I know I can use perlbrew off but I would like to completely remove it. How do I do that?

Answer

brian d foy picture brian d foy · Sep 18, 2010

Perl doesn't have an uninstaller, unfortunately, so the general answer is that you have to find the files and remove them. But, what do you want to remove? Just the scripts and modules, or everything that it installed? Find your perlbrew locations with:

perldoc -l perlbrew
perldoc -l App::perlbrew

If you want to uninstall everything that in installed, you have to remove perlbrew's $ROOT directory, which is ~/perl5/perlbrew unless you changed something.

Additionally, if you modified your shell config files to load the perlbrew config files, you have to remove the perlbrew droppings there.

Perlbrew is really a slick interface to a simple task. It installs a bunch of perls and moves around symlinks to them. I do something similar without the symbolic links. See my Make links to per-version tools. post on The Effective Perler.

I should note that I don't really have anything against perlbrew, but I think its a tool for people who already know what they are doing and know what perlbrew is merely automating for them. I don't think it should be a crutch for people who want to not learn the very easy steps to installing a perl.