Skip to content

Commit

Permalink
Update brew.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pew authored Feb 10, 2024
1 parent d1cd87a commit 6e1728b
Showing 1 changed file with 7 additions and 20 deletions.
27 changes: 7 additions & 20 deletions man/brew.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

create a `Brewfile` ... well, on your old/original system

```
```shell
brew bundle dump --file Brewfile
```

install all packages:

```
```shell
brew bundle
```

Expand All @@ -24,36 +24,23 @@ brew uninstall --zap microsoft-edge

## update brew (packages/apps)

```
```shell
brew update
brew upgrade
brew cask upgrade
```

## clear cache

because `brew cleanup` does not clean up.

```
rm -r $(brew --cache)
```

there's also:

```
brew cleanup
```

to make it even more confusing, there's also:
because `brew cleanup` does not clean up all the things.

```shell
brew cleanup -s
brew cleanup --prune=all -s
rm -r $(brew --cache)
```

> Scrub the cache, including downloads for even the latest versions. Note downloads for any installed formulae or casks will still not be deleted. If you want to delete those too: `rm -rf "$(brew --cache)"`
## reinstall all packages

```
```shell
brew list | xargs brew reinstall
```

0 comments on commit 6e1728b

Please sign in to comment.