From 2cb1867388ede1e13261d8584b61e73a8ab058fe Mon Sep 17 00:00:00 2001 From: medusa Date: Fri, 31 May 2024 01:55:02 +0000 Subject: [PATCH] Add smma/homebrew.md --- smma/homebrew.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 smma/homebrew.md 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