From f25064031fc3d9e05cee510ea9ff6479ee9bfaeb Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Fri, 11 Oct 2024 10:57:42 -0500 Subject: [PATCH] Add Export List Of Everything Installed By Brew as a Brew TIL --- README.md | 3 +- ...rt-list-of-everything-installed-by-brew.md | 48 +++++++++++++++++++ 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 brew/export-list-of-everything-installed-by-brew.md diff --git a/README.md b/README.md index 8a18d4a..b2d419f 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ pairing with smart people at Hashrocket. For a steady stream of TILs, [sign up for my newsletter](https://crafty-builder-6996.ck.page/e169c61186). -_1459 TILs and counting..._ +_1460 TILs and counting..._ --- @@ -101,6 +101,7 @@ _1459 TILs and counting..._ ### Brew - [Configure Brew Environment Variables](brew/configure-brew-environment-variables.md) +- [Export List Of Everything Installed By Brew](brew/export-list-of-everything-installed-by-brew.md) - [List All Services Managed By Brew](brew/list-all-services-managed-by-brew.md) ### Chrome diff --git a/brew/export-list-of-everything-installed-by-brew.md b/brew/export-list-of-everything-installed-by-brew.md new file mode 100644 index 0000000..afb68b9 --- /dev/null +++ b/brew/export-list-of-everything-installed-by-brew.md @@ -0,0 +1,48 @@ +# Export List Of Everything Installed By Brew + +If you're on a Mac using Homebrew to install various tools and utilities, there +may come a time when you want a listing of what is installed. + +Run this command: + +```bash +$ brew bundle dump +``` + +It may take 10 or so seconds. When it is done, you'll have a `Brewfile` in your +current directory. + +Open it up and you'll see a bunch of lines like the following: + +``` +tap "heroku/brew" +tap "homebrew/bundle" +tap "homebrew/services" +tap "mongodb/brew" +tap "planetscale/tap" +tap "stripe/stripe-cli" +brew "asdf" +brew "bat" +brew "direnv" +brew "entr" +brew "exa" +brew "fd" +brew "ffmpeg" +brew "fx" +brew "fzf" +brew "gcc" +brew "gh" +brew "planetscale/tap/pscale" +brew "stripe/stripe-cli/stripe" +cask "1password-cli" +vscode "ms-playwright.playwright" +vscode "ms-vsliveshare.vsliveshare" +vscode "prisma.prisma" +``` + +Notice there are `tap`, `brew`, `cask`, and even `vscode` directives. + +This is a file you could export and then run on a 'new' machine to install all +the programs you're used to having available on your current machine. + +[source](https://danmunoz.com/setting-up-a-new-computer-with-homebrew/)