Update smma/homebrew.md

This commit is contained in:
2024-05-31 02:17:34 +00:00
parent 2cb1867388
commit 42158f19bf

View File

@@ -1,27 +1,42 @@
# Install Homebrew
```bash
/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
# Update your PATH
```bash
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zshrc
```
# Update your shell
```bash
source ~/.zshrc
# For bash
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.bash_profile
source ~/.bash_profile
```
# 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
```