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
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
Re-install macOS and it should re-create the /opt directory.
You should be able to do the re-install from recover mode
How to reinstall macOS - Apple Support
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.
Me unfortunately deleted opt directory