diff --git a/smma/homebrew.md b/smma/homebrew.md new file mode 100644 index 0000000..5bda3d1 --- /dev/null +++ b/smma/homebrew.md @@ -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