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 ```