Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I completely uninstall perlbrew?

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?

like image 713
David B Avatar asked Sep 18 '10 11:09

David B


1 Answers

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.

like image 94
brian d foy Avatar answered Oct 23 '22 10:10

brian d foy