Manage different versions of homebrew packages
Project description
Brew Versions (brewv
)
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
List available bottle versions:
$ brewv switch wget
[brewv]: Found the following bottle versions for wget:
- 1.21.1
- 1.21
- 1.20.3_2
- 1.20.3_1
- 1.20.3
- 1.20.2
- 1.20.1_4
- 1.20.1_3
- 1.20.1_2
- 1.20.1_1
- 1.19.5
- 1.19.4_1
- 1.19.4
- 1.19.3
- 1.19.2_1
- 1.19.2
- 1.19.1_1
- 1.19.1
- 1.18
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.
Bintray.com will be disabled on May 1st 2021, and homebrew as of now hasn't updated to a new host. When they do, this package will need to be updated and it's possible some of the functionality like listing available bottle versions won't work
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file brew-versions-0.2.1.tar.gz
.
File metadata
- Download URL: brew-versions-0.2.1.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.9.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0cdc89c07aaa546b454d1b56d799beafe0b2acece0d2144b5e34e8726d6bd193 |
|
MD5 | 122a616b78facd0d2b72bc1fca23a97c |
|
BLAKE2b-256 | c1225c34c62cce2af758d8d49d3f71317e2544658c4efae19e77bac3c406542b |
File details
Details for the file brew_versions-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: brew_versions-0.2.1-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.9.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b73da800460b19344c20d02eeb7bc6591f12c64a6b89ca8706473902a0e986d1 |
|
MD5 | dc0870d57c841f35874c5160e029574a |
|
BLAKE2b-256 | 46c90623e85c607d858eae0010c8bce073366c6d4b7946182efb9e682803cfa7 |