Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

brew upgrade for HEAD formulas fails with error: already installed #13197

@jasonblewis

Description

@jasonblewis

brew upgrade formula on a formula that was initially installed with the --HEAD option fails with:

Error: formula-HEAD already installed

There is no clear way to upgrade a formula installed with --HEAD other than uninstalling and re-installing. Example:

jason@woodhouse:/usr/local/Library/Formula$ brew install --HEAD wol
==> Cloning https://github.com/kylef/wol.git
Cloning into /Users/jason/Library/Caches/Homebrew/wol--git...
remote: Counting objects: 13, done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 13 (delta 2), reused 0 (delta 0)
Unpacking objects: 100% (13/13), done.
==> make
/usr/local/Cellar/wol/HEAD: 4 files, 24K, built in 16 seconds
jason@woodhouse:/usr/local/Library/Formula$ brew upgrade wol
Error: wol-HEAD already installed
jason@woodhouse:/usr/local/Library/Formula$ brew upgrade --HEAD wol
Error: wol-HEAD already installed
jason@woodhouse:/usr/local/Library/Formula$

Max Howell suggested that this should either be fixed or the error message improved and requested I open this ticket.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions