Brewver is a command-line tool written in Rust that allows you to install a specific version of a Homebrew formula. It fetches the desired version from the Homebrew repository and installs it on your system.
- Install specific versions of Homebrew formulas.
- Automatically fetches the correct commit and bottle file from the Homebrew repository.
- Provides detailed logging for debugging and information purposes.
- Rust and Cargo installed on your system. You can install them from rustup.rs.
- Homebrew installed on your system. You can install it from brew.sh.
-
Clone the repository:
git clone https://github.com/agnislav/brewver.git cd brewver
-
Build the project using Cargo:
cargo build --release
-
The compiled binary will be located in the
target/release
directory. You can move it to a directory in yourPATH
for easier access:mv target/release/brewver /usr/local/bin/
To use Brewver, run the following command:
brewver <formula_name> <formula_version>
For example, to install version 1.0 of openssl
, you would run:
brewver openssl 1.0
Brewver uses the log
crate for logging. The logging level can be set using the RUST_LOG
environment variable. For example:
RUST_LOG=debug brewver openssl 1.0
Default log level is info
.
Contributions are welcome! Please fork the repository and submit a pull request with your changes.
This project is licensed under the MIT License. See the LICENSE file for details.
Agnislav Onufriichuk