Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent homebrew from upgrading a package?

Tags:

homebrew

I'm wondering if there's any means to prevent Homebrew from upgrading a particular package ? Yesterday I went for a brew upgrade which updated the lua package from 5.1 to 5.2. It broke one of the projects I'm working on those days so I had to downgrade the lua package today when I noticed it.

I'd like this not to happen again, and I guess Homebrew must provide this kind of feature, but I didn't find anything about it in the documentation. Do you have any clue ?

like image 505
Pierre-Adrien Avatar asked Sep 26 '14 09:09

Pierre-Adrien


People also ask

How do I stop brew from updating?

another possible solution is to send Ctrl-C to the shell while HomeBrew running brew update --auto-update . This will interrupt the updating process.

Does Homebrew automatically update packages?

Today by default, everytime you install a new package, brew will go ahead and automatically update all of my system packages to their latest versions.

What is the difference between brew update and brew upgrade?

brew update and upgradebrew update updates the above downloaded git repository with the latest code from GitHub. brew upgrade updates the actual packages to match the versions in the updated local git repository.


1 Answers

brew pin someformula.

There is also a lua51 formula now.

like image 195
Tim Smith Avatar answered Sep 22 '22 15:09

Tim Smith