Skip to content

Wrapper for brew that alllows to install a particular formula version

Notifications You must be signed in to change notification settings

agnislav/brewver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brewver

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.

Features

  • 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.

Prerequisites

  • 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.

Installation

  1. Clone the repository:

    git clone https://github.com/agnislav/brewver.git
    cd brewver
  2. Build the project using Cargo:

    cargo build --release
  3. The compiled binary will be located in the target/release directory. You can move it to a directory in your PATH for easier access:

    mv target/release/brewver /usr/local/bin/

Usage

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

Logging

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.

Contributing

Contributions are welcome! Please fork the repository and submit a pull request with your changes.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Author

Agnislav Onufriichuk

About

Wrapper for brew that alllows to install a particular formula version

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages