Thursday, October 6, 2022

#1 2022-05-25 01:34:07 am

Fredrik71
Member
Registered: 2019-10-23
Posts: 976

This topic is about using brew in Monterey

As many users already know is that Apple are dedicated to make user experience of digital age to become more secure. And in most cases its a good approach in a world that do harm to gain a purpose.

This topic is about using brew in Monterey.

In Monterey the package is installed in /opt/homebrew

Its means to install brew on your computer you need administrator access.

Ex.
On my computer I have 2 account (administrator and local user without administrator access)
I always login as local user and use su command to change account in terminal.

Terminal:
su <admin_account>
brew install <package_name>
You exit with the command exit

To open Cakebrew.app
su <admin_account> in Terminal
/Applications/Cakebrew.app/Contents/MacOS/Cakebrew

You have open Cakebrew.app as administrator in Terminal and are able to install/upgrade package
The only thing you need to do for any local user without administrator access to set the variable PATH to point to /opt/homebrew/bin

To change write access of directory to be able to install on local user account is not the best approach specially when its outside the home directory.


Node-RED makes it easy to automate IoT

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)