42 lines
563 B
Markdown
42 lines
563 B
Markdown
# Install Homebrew
|
|
```bash
|
|
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
|
```
|
|
|
|
# Update your PATH
|
|
```bash
|
|
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zshrc
|
|
```
|
|
# Update your shell
|
|
```bash
|
|
source ~/.zshrc
|
|
```
|
|
|
|
# Install ImageMagick
|
|
```bash
|
|
brew install imagemagick
|
|
```
|
|
|
|
# Verify the installation
|
|
```bash
|
|
magick --version
|
|
```
|
|
|
|
---
|
|
|
|
> Keep Homebrew up-to-date
|
|
|
|
# Update Homebrew
|
|
```bash
|
|
brew update
|
|
```
|
|
|
|
# Upgrade installed packages
|
|
```bash
|
|
brew upgrade
|
|
```
|
|
|
|
# Cleanup old versions
|
|
```bash
|
|
brew cleanup
|
|
``` |