Solved : Channel pear is already initialized

I faced channel pear installation issue many times on many linux OS. I installed the pear package first then I removed pear package from linux box. Then when I again tried to install the pear package on box I got the following error. I solved the channel pear issue using following commands.

Solved : Channel pear is already initialized

[root@localhost purab]# pear channel-discover pear.cakephp.org
Channel “pear.cakephp.org” is already initialized
[root@localhost purab]# pear install cakephp/CakePHP
No releases available for package “pear.cakephp.org/CakePHP”
install failed

[root@localhost purab]# pear remote-list -c cakephp
File http://pear.cakephp.org:80/rest/c/categories.xml not valid (redirected but no location)

[root@localhost purab]# pear install cakephp/CakePHP
No releases available for package “pear.cakephp.org/CakePHP”
install failed

[root@localhost purab]# pear channel-discover pear.cakephp.org
Channel “pear.cakephp.org” is already initialized
[root@localhost purab]# pear upgrade pear
Nothing to upgrade

Following command is solved my issue and I am able to install pear package successfully.
[root@localhost purab]# pear clear-cache
reading directory /var/cache/php-pear
302 cache entries cleared

[root@localhost purab]# pear install cakephp/CakePHP
Unknown remote channel: pear.phpunit.de
Did not download optional dependencies: channel://pear.phpunit.de/PHPUnit, use –alldeps to download automatically
cakephp/CakePHP can optionally use package “channel://pear.phpunit.de/PHPUnit” (version >= 3.5.0)
downloading CakePHP-2.4.2.tgz …
Starting to download CakePHP-2.4.2.tgz (1,377,541 bytes)
……………done: 1,377,541 bytes
install ok: channel://pear.cakephp.org/CakePHP-2.4.2
[root@localhost purab]#

Use following command command for solve the issue.
#pear clear-cache