Add smma/homebrew.md

This commit is contained in:
2024-05-31 01:55:02 +00:00
parent c78c25daaf
commit 2cb1867388

27
smma/homebrew.md Normal file
View File

@@ -0,0 +1,27 @@
# Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Update your PATH (choose the appropriate one based on your shell)
# For zsh
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zshrc
source ~/.zshrc
# For bash
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.bash_profile
source ~/.bash_profile
# Install ImageMagick
brew install imagemagick
# Verify the installation
magick --version
# Update Homebrew
brew update
# Upgrade installed packages
brew upgrade
# Cleanup old versions
brew cleanup