Update smma/homebrew.md
This commit is contained in:
@@ -1,27 +1,42 @@
|
|||||||
# Install Homebrew
|
# Install Homebrew
|
||||||
|
```bash
|
||||||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
/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)
|
# Update your PATH
|
||||||
|
```bash
|
||||||
# For zsh
|
|
||||||
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zshrc
|
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zshrc
|
||||||
|
```
|
||||||
|
# Update your shell
|
||||||
|
```bash
|
||||||
source ~/.zshrc
|
source ~/.zshrc
|
||||||
|
```
|
||||||
# For bash
|
|
||||||
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.bash_profile
|
|
||||||
source ~/.bash_profile
|
|
||||||
|
|
||||||
# Install ImageMagick
|
# Install ImageMagick
|
||||||
|
```bash
|
||||||
brew install imagemagick
|
brew install imagemagick
|
||||||
|
```
|
||||||
|
|
||||||
# Verify the installation
|
# Verify the installation
|
||||||
|
```bash
|
||||||
magick --version
|
magick --version
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
> Keep Homebrew up-to-date
|
||||||
|
|
||||||
# Update Homebrew
|
# Update Homebrew
|
||||||
|
```bash
|
||||||
brew update
|
brew update
|
||||||
|
```
|
||||||
|
|
||||||
# Upgrade installed packages
|
# Upgrade installed packages
|
||||||
|
```bash
|
||||||
brew upgrade
|
brew upgrade
|
||||||
|
```
|
||||||
|
|
||||||
# Cleanup old versions
|
# Cleanup old versions
|
||||||
|
```bash
|
||||||
brew cleanup
|
brew cleanup
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user