In order to install packages in macOS , we use "brew" command-line utility.
Installation Steps:
For installing "brew" utility follow below steps:
- (As a normal user) Download the install.sh script
- curl -O https://raw.githubusercontent.com/Homebrew/install/master/install.sh
- (Provide execute permission to the downloaded script file install.sh)
- chmod +x ./install.sh
- (Start the script execution)
- ./install.sh
- (Add the default Homebrew install path to default .zprofile)
- echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/$USER/.zprofile
- eval "$(/opt/homebrew/bin/brew shellenv)"
Finally execute the command brew help and test the installation
No comments:
Post a Comment