RSSAmplifier

Cory Dransfeldt • Posts · Jan 23, 2026

Pinning homebrew dependencies

0
Sign in to vote or save

Cory Dransfeldt · Cory Dransfeldt

You learn something new every day. I've been using Homebrew for over a decade and, up until a few weeks ago, hadn't hit a case where I would not want to update something.

What I recently encountered, however, is running my simple update alias:

# update dependencies
alias update='antidote update && brew update && brew upgrade && brew cleanup && mas update'

Led to PHP being updated from 8.4 to 8.5 (which is something one would expect to happen). However, when running the dev server for this site, Laravel began dumping warnings into the console. Since a flood of warnings is less than ideal, I looked around for a solution so that I could avoid this while running update periodically. It turns out that I was completely oblivious to the fact that brew has a pin command:

brew pin <package-name>

This solved my issue and this is also what I get for not reading the fucking manual.

Read the original on coryd.dev

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.