winkster winkster - 1 year ago 261
PHP Question

How to remove globally a package from Composer?

I ran this command to install globally PHPUnit:

composer global require 'phpunit/phpunit=3.7.*'

Now I want to uninstall globally PHPUnit.

Any ideas?

Answer Source

To remove a globally installed package run:

composer global remove phpunit/phpunit

global command lets you to run many commands like install, require or update as if you were running them from the COMPOSER_HOME directory.

Read the related documentation here:

COMPOSER_HOME depends on your system (on Linux it's usually ~/.composer or ~/.config/composer), see for more details.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download