From 6e1728bb4512bdb2a66f2aaeed2d69608d3a3396 Mon Sep 17 00:00:00 2001 From: Jonas Date: Sat, 10 Feb 2024 12:11:34 +0100 Subject: [PATCH] Update brew.md --- man/brew.md | 27 +++++++-------------------- 1 file changed, 7 insertions(+), 20 deletions(-) diff --git a/man/brew.md b/man/brew.md index f79226c..3af8d3b 100644 --- a/man/brew.md +++ b/man/brew.md @@ -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 ``` @@ -24,7 +24,7 @@ brew uninstall --zap microsoft-edge ## update brew (packages/apps) -``` +```shell brew update brew upgrade brew cask upgrade @@ -32,28 +32,15 @@ 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 ```