How to safely remove drush via pear and then install via composer? I have drush 5 installed on my VPS running CentOS 6. Drush was installed using PEAR.
Can I just remove the drush directory and the simlinks and then install drush 7 using composer?

I have been searching for a way to uninstall drush, but all I get are tutorials to install it.
Uninstalling Drush using Pear

If Drush has been installed using Pear, it can be removed using the following command.

pear uninstall drush/drush


Installing Drush via Composer

For the most current install instructions, refer to the Drush GitHub page.

1) Add Composer's global bin directory to the system PATH (recommended):

sed -i '1i export PATH="$HOME/.composer/vendor/bin:$PATH"' $HOME/.bashrc
source $HOME/.bashrc


2) Install Drush

composer global require drush/drush