How do you specify a version using brew cask?

For recent versions of Homebrew, Jethro’ instructions below may not work work, because we will get an error like: Invalid usage: Non-checksummed download of <FORMULA_NAME> formula file from an arbitrary URL is unsupported. I found a workaround: Go to the Homebrew Cask search page: https://formulae.brew.sh/cask/ Type and find the application you are looking for Click … Read more

nvm install node fails to install on macOS Big Sur M1 Chip

If you have installed nvm using homebrew and are trying to install the node using command nvm install <some_version>, you will face errors on apple silicon machines (ARM) for versions lower than 15. Node versions older than 15 do not work on apple silicon machines (ARM) because ARM architecture is not supported. For anything under … Read more

how to uninstall pyenv(installed by homebrew) on Mac

From the docs: Uninstalling pyenv The simplicity of pyenv makes it easy to temporarily disable it, or uninstall from the system. To disable Pyenv managing your Python versions, simply remove the pyenv init line from your shell startup configuration. This will remove Pyenv shims directory from PATH, and future invocations like python will execute the … Read more

How can I run two isolated installations of Homebrew?

Install Homebrew natively on Apple Silicon (will install to /opt/homebrew by default): /bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)” Install Intel-emulated Homebrew (will install to /usr/local by default): arch –x86_64 /bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)” If you haven’t yet installed Rosetta 2, you’ll need to run softwareupdate –install-rosetta first. Create an alias for Intel homebrew. I’m calling … Read more

ModuleNotFoundError: No module named ‘_lzma’ when building python using pyenv on macos

None of the prior answers worked for me. The instructions in this gist worked for me. In short: You may be missing the xz libraries, in which case you can install them with Homebrew and then reinstall/rebuild the Python version from pyenv: $ brew install xz $ pyenv uninstall <desired-python-version> $ pyenv install <desired-python-version> Note: … Read more

How to install older versions using Homebrew

Usually, you can check if multiple versions are available and you can specify the version with @. e.g. brew install [email protected] $ brew info memcached memcached: stable 1.4.24 High performance, distributed memory object caching system https://memcached.org/ Conflicts with: mysql-cluster (because both install `bin/memcached`) Not installed From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/memcached.rb … If is not available the version you … Read more