Add smma/homebrew.md
This commit is contained in:
27
smma/homebrew.md
Normal file
27
smma/homebrew.md
Normal 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
|
||||||
Reference in New Issue
Block a user