This warning means that icu4c@76 (ICU for C/C++ version 76.x) is an older, versioned formula that Homebrew no longer actively supports or recommends. You should migrate software that depends on it to use a newer, supported version of ICU (likely the main icu4c formula, which points to the latest stable version, or a more recent versioned formula if available and needed).
Here's how to approach solving this:
-
Update Homebrew and Formulae:
Always start with this to ensure you have the latest information and versions.
brew update
brew upgrade
brew doctor
Sometimes, brew upgrade might resolve this if the packages depending on icu4c@76 have newer versions that use a more recent ICU.
-
Identify What Depends on icu4c@76:
This is the most crucial step. You need to find out which of your installed packages are still using this old version.
brew uses --installed icu4c@76
This command will list all installed formulae that have icu4c@76 as a dependency.
-
Take Action Based on Dependencies:
-
Scenario A: brew uses lists other formulae (e.g., php@8.0, node@18, etc.)
This means other Homebrew packages you have installed rely on icu4c@76.
-
Scenario B: brew uses --installed icu4c@76 shows nothing.
This could mean:
icu4c@76 was installed directly by you and is no longer needed by any Homebrew package.
- It's a dependency of software you compiled manually or installed outside of Homebrew.
If you're sure no Homebrew package needs it, and you don't recall needing it for manually compiled software, you might be able to uninstall it:
brew uninstall icu4c@76
However, be cautious. If something outside Homebrew depends on it, that software might break.
-
The Likely Replacement for icu4c@76:
The most common replacement is the main, unversioned icu4c formula, which points to the latest stable release of ICU.
brew info icu4c
This will show you the current version. If you (or a package) need ICU, this is generally the one to use. If a package specifically requires an older ICU but newer than 76, Homebrew might offer another versioned formula like icu4c@7X (e.g., icu4c@78 if it existed and was supported). You can search:
brew search icu4c
-
Clean Up:
After making changes, it's good to clean up:
brew autoremove # Removes formulae that were installed as dependencies but are no longer needed
brew cleanup # Removes stale lock files and old downloads
Example Walkthrough:
Let's say brew uses --installed icu4c@76 outputs:
php@8.0
This means your php@8.0 installation depends on icu4c@76.
- Check if there's a newer
php@8.0 or if you can move to php@8.1 / php@8.2 / php (latest).
- If you decide to move to
php@8.2:
brew uninstall php@8.0 # (Backup configs first!)
brew install php@8.2
- The
install php@8.2 command will pull in the required ICU version (likely the current icu4c).
- Once
php@8.0 is gone (or updated to a version not using icu4c@76), icu4c@76 might become an orphaned dependency.
- Run
brew autoremove. If icu4c@76 is no longer needed by anything, it should be removed. If it's still there, something else might still (unexpectedly) depend on it, or you might need to uninstall it manually if you're certain it's safe.
If you can't find a direct replacement or an upgrade path for software that needs icu4c@76, you might have to:
- Live with the warning (not ideal, as
icu4c@76 might eventually be removed entirely, breaking things).
- Find alternative software.
- Compile the dependent software from source yourself, linking against a newer ICU.
The key is to identify why icu4c@76 is installed and then update or replace the software that requires it.