4

Recently I successfully uninstalled pear using the following command:

$ sudo pear uninstall pear

So I recently reinstalled it, but I botched the installation and I want to start over (once again). This time, when I run the above command, pear gives me this message:

pear/pear not installed

Any suggestions?

fronzee
  • 1,668
  • 2
  • 21
  • 32

2 Answers2

6

PEAR is just a bunch of php scripts. To uninstall it manually just remove /usr/share/php/PEAR (the path can vary on distribs)

zerkms
  • 249,484
  • 69
  • 436
  • 539
  • Good point. I found the directories I needed to remove, and also needed to remove `/etc/.pearrc` (in case anybody else is wondering). Thanks. – fronzee Dec 01 '11 at 21:21
-3

Refer to the correct way to install and uninstall pear:

http://pear.php.net/manual/en/installation.getting.php

  • 2
    Thanks but I've checked the docs and it doesn't say anything about uninstalling. – fronzee Dec 01 '11 at 21:20
  • Right on that page it tells you how to install Pear using wget and php... it takes two minutes. –  Dec 01 '11 at 21:31
  • 1
    @MatthewRMiller Yes, but I am not trying to install it at this point, I am trying to uninstall it. Which I did. (I just manually deleted the directories per zerkms's suggestion.) – fronzee Dec 01 '11 at 21:43