Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Homebrew install package with a particular version

Unfortunately on my MAC I am unable to get the gem "rmagick" to install. I've tried pretty much a all the options.

I had gotten it to install when I used "imagemagick 6.3.9.7".

Therefore, I want to know is there a way to install a particular version of the software using brew ?

Something like

brew install imagemagick -v 6.3.9.7
like image 649
Prakash Raman Avatar asked Jan 23 '17 06:01

Prakash Raman


People also ask

How do I install a specific version of a package with brew?

To save you some time, here's how to do it: You create a local “tap” - which I assume is something like a local brew repository. You extract the desired version of the package into this local tap. You install your local tap.

What is a cask in Homebrew?

Homebrew-Cask extends Homebrew and allows you to install large binary files via a command-line tool. You can for example install applications like Google Chrome, Dropbox, VLC and Spectacle. No more downloading .

What does brew Tap do?

The brew tap command adds more repositories to the list of formulae that Homebrew tracks, updates, and installs from. By default, tap assumes that the repositories come from GitHub, but the command isn't limited to any one location.


1 Answers

Search for available versions with:

brew search imagemagick

To install a specific version use this forumla: brew install package@<version>, in your case it's:

brew install [email protected]
like image 65
balazs630 Avatar answered Oct 13 '22 22:10

balazs630