Update smma/homebrew.md
This commit is contained in:
@@ -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
|
||||
```
|
||||
Reference in New Issue
Block a user