https://github.com/bugbiteme/brew-packages-macbook-pro
List of packages installed on macbook with homebrew
https://github.com/bugbiteme/brew-packages-macbook-pro
Last synced: 4 months ago
JSON representation
List of packages installed on macbook with homebrew
- Host: GitHub
- URL: https://github.com/bugbiteme/brew-packages-macbook-pro
- Owner: bugbiteme
- Created: 2024-09-11T16:50:49.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-11T19:31:43.000Z (almost 2 years ago)
- Last Synced: 2025-07-19T14:24:05.977Z (11 months ago)
- Size: 68.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# brew-packages-macbook-pro
List of packages installed on macbook with homebrew
## Install
On the new Mac, ensure that Homebrew is installed. Then, you can use the following commands to install everything from the lists:
For formula:
```
xargs brew install < brew-formula-list.txt
```
For casks:
```
xargs brew install --cask < brew-cask-list.txt
```
This method allows you to easily export and re-install all the apps and utilities you have installed via Homebrew on another Mac.
## Uninstall
To use the exported list to uninstall packages from a Mac, you can follow a similar process, but with the brew uninstall command instead.
Here’s how you can do it:
### Uninstall packages:
If you have a brew-formula-list.txt file with the list of installed formula, you can run:
```
xargs brew uninstall < brew-uninstall.txt
```
This will uninstall all the formulae listed in the `brew-uninstall.txt` file.
## Exporting from an existing Mac
To export the list of applications installed via Homebrew and Homebrew Cask and use it for installing them on another Mac, follow these steps:
### Export the list of installed formula and casks:
Use the following commands to generate a list of the installed formulae (regular packages) and casks (macOS applications) and export them to a file.
```
brew list --formula > brew-formula-list.txt
brew list --cask > brew-cask-list.txt
```
This will create two files: `brew-formula-list.txt` (for the formula) and `brew-cask-list.txt` (for the casks).