Me unfortunately deleted opt directory

whenever I am trying to install home-brew it using usr instead of opt. How I fix that and able to install it into opt?

MacBook Air 13″, macOS 13.5

Posted on Mar 14, 2025 9:38 PM

Reply
2 replies

Mar 15, 2025 9:12 AM in response to NahidHasanRashid

Homebrew automatically installs into /usr/local on Intel Macs and /opt on Apple Silicon Macs by default.


If you want to set up Homebrew using non-standard options then you are best off reading their documentation thoroughly, and asking questions in their forums: https://github.com/orgs/Homebrew/discussions - especially since the Homebrew developers and maintainers often participate directly there.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Me unfortunately deleted opt directory

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.