How to uninstall composer on Mac?

Source: Internet
Author: User
Tags 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? 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.pharFile Location. delete the file. For global installation, the path isusr/local/bin/composer.phar

First... We must first knowHow did you installBefore you can tell you how to uninstall it !!!

However, it is theoretically executedwhereis composerCheckcomposerWhere, thensudo rm /path/composerYou can.

Find/-name composer and then rm-rf

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.