For example, a composer is installed on the Mac, but for some reason, I want to uninstall the composer and install the composer tutorial on the Internet. How can I uninstall the installed composer on a Macbook? For example, a composer is installed on the Mac, but for some reason, I want to uninstall the composer and install the composer tutorial on the Internet. How can I uninstall the installed composer on a Macbook?
Reply content:
For example, a composer is installed on the Mac, but for some reason, I want to uninstall the composer and install the composer tutorial on the Internet. How can I uninstall the installed composer on a Macbook?
rm -rf /usr/bin/composer
rm -rf /usr/local/bin/composer.phar
I have not installed composer on mac, but can you try to see if there is any composer in all applications? If yes, just delete it.
Because in essence composer is a composer. the phar file, even if the installation file has not been installed with composer, just copy composer. the phar file can also be run in the root directory of the corresponding project. The composer Installation File actually adds a shell to the file.
You only need to find the one you downloadedcomposer.phar
File Location. delete the file. For global installation, the path isusr/local/bin/composer.phar
First... We must first knowHow did you install
Before you can tell you how to uninstall it !!!
However, it is theoretically executedwhereis composer
Checkcomposer
Where, thensudo rm /path/composer
You can.
Find/-name composer and then rm-rf