https://github.com/nikitabobko/brew-install-path
Simple script that allows installing homebrew formulas/casks from paths
https://github.com/nikitabobko/brew-install-path
brew homebrew mac macos
Last synced: about 2 months ago
JSON representation
Simple script that allows installing homebrew formulas/casks from paths
- Host: GitHub
- URL: https://github.com/nikitabobko/brew-install-path
- Owner: nikitabobko
- License: mit
- Created: 2025-08-28T17:45:32.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-08-30T22:03:43.000Z (10 months ago)
- Last Synced: 2025-09-30T08:53:07.330Z (9 months ago)
- Topics: brew, homebrew, mac, macos
- Language: Ruby
- Homepage:
- Size: 12.7 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# brew-install-path
Homebrew 4.6.4 introduced a breaking change that disabled the possibility of installing formulas/casks from paths.
- [Homebrew Breaking change Issue](https://github.com/Homebrew/brew/issues/18371)
- [Homebrew Breaking change PR](https://github.com/Homebrew/brew/pull/20414)
- [Homebrew 4.6.4 Release notes](https://github.com/Homebrew/brew/releases/tag/4.6.4)
[The official workaround](https://github.com/Homebrew/brew/issues/18371#issuecomment-2365396463) is to create a local tap and move your ruby file there,
which is obnoxious to do manually every time.
`brew-install-path` automates this by allowing you to install local paths in one command.
## Installation
```
brew install nikitabobko/tap/brew-install-path
```
## Usage
After installing `brew-install-path`, you can do the following:
```
brew install-path ./formula-or-cask.rb
brew ip ./formula-or-cask.rb
```
Formulas/Casks installed by `brew-install-path` are no different from other formulas/casks and can be uninstalled as usual by `brew uninstall`.
## Synopsis
```
Usage: brew install-path [-h|--help] [-v|--version] [--cask|--formula] [OTHER_OPTIONS]... [--] ...
Options:
-h, --help Print this help and exit
-v, --version Print version and exit
--cask Treat all named arguments as casks
--formula, --formulae Treat all named arguments as formulas
All other options are forwarded to 'brew install'
```
## Disclaimer
`brew-install-path` is written by somebody who ["demonstrates their lack of understanding of Homebrew works"](https://github.com/Homebrew/brew/issues/18371#issuecomment-3233910856), use at your own risk.
If you found this script to be useful, keep in mind that your workflow is [probably "broken" and you should reevaluate using it](https://github.com/orgs/Homebrew/discussions/6351#discussioncomment-14257503).
Also, please note that by using this script, you are actively "wasting the limited time" of precious homebrew volunteers.
Thank you for your understanding.