Skip to main content

Brew Versions (brewv)

PyPI version Python versions

Manage multiple versions of your Homebrew packages with ease! Homebrew makes this difficult as a design decision, but sometimes old packages need to be installed and we need a way to do so easily.

Installation

With pipx

pipx install brew-versions

Or just with pip:

python3 -m pip install --user brew-versions

Usage

Switch to a specific version:

$ brewv switch wget 1.21
[brewv]: Switching wget to version 1.21
[brewv]: Not in cache: finding bottle to download
[brewv]: GET https://linuxbrew.bintray.com/bottles/wget-1.21.x86_64_linux.bottle.tar.gz
[brewv]: Bottle successfully downloaded, but cannot verify SHA256
[brewv]: Pinning wget
[brewv]: Successfully switched to wget 1.21

Installing from taps:

$ brewv switch jonchang/biology/bucky 1.4.4
[brewv]: Tapping jonchang/biology
[brewv]: Switching bucky to version 1.4.4
[brewv]: Not in cache: finding bottle to download
[brewv]: GET https://linuxbrew.bintray.com/bottles/bucky-1.4.4.x86_64_linux.bottle.tar.gz
[brewv]: No bottle was found for bucky 1.4.4
[brewv]: Searching for version in git directory, this may take a while...
[brewv]: Found a version in commit: eee76a60fb5d7c6b619d736b50ee10fe42a9c73c
[brewv]: Found bottle in tap config
[brewv]: GET https://dl.bintray.com/jonchang/bottles-biology/bucky-1.4.4.x86_64_linux.bottle.tar.gz
[brewv]: SHA256 verified successfully
[brewv]: Pinning bucky
[brewv]: Successfully switched to jonchang/biology/bucky 1.4.4

When no bottle is found for taps it will proceed with searching the local tap repository for the correct version and installing from the bottle defined in the formula if it exists, otherwise from source.

This is very slow for the main homebrew repository so this behaviour is disabled when a bottle for a homebrew-core package cannot be found. You can supply the option brewv switch --slow ... to perform this search.

Warnings

Proper SHA256 verification is not done when downloading bottles from the main bottle repository. This is because to get the expected SHAs would mean searching the huge homebrew-core repository.

While homebrew bottles exist for most operating systems, if the bottle is not found then parsing old formulas fails quite often since Homebrew updates their code frequently.

Release files for brew-versions 0.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for brew-versions 0.3.3
File Size Uploaded
brew-versions-0.3.3.tar.gz 10.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for brew-versions 0.3.3
File Interpreter ABI Platform
brew_versions-0.3.3-py3-none-any.whl Python 3 none any Details

Total release size: 19.6 kB

Release files / brew-versions-0.3.3.tar.gz

Download URL brew-versions-0.3.3.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c6c2d805ed2192bfbdb62561e2a935f5e7287264bde0bd66ccc609dcfd1ac901
BLAKE2b-256 checksum
How to use checksums
d6ec7baf9bfb3d4747955f4d455ad6f10d2cc9ac19d1131a46cadbf62ca9d030
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

Release files / brew_versions-0.3.3-py3-none-any.whl

Download URL brew_versions-0.3.3-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a09284ce2736f77ecdcc7aa5970b70b0e834ea75891b0bba74703006a136495c
BLAKE2b-256 checksum
How to use checksums
f294cd7334510f3c52fa42375d5287d27900a357138648ac1bd4e9b55a34f914
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

Release history Release notifications | RSS feed

This release

0.3.3 This release

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page