Software⏱️ 3 min read📅 2026-06-11

How to Fix: How to uninstall php70 or suppress homebrew error messages

How to suppress homebrew error messages for php70 on mac.

Quick Answer: Try running `brew doctor` and then `brew update && brew upgrade` to refresh your formula cache.

The error message 'Error: No available formula with the name "homebrew/php/php70"' affects users who have installed PHP 7.0 using Homebrew on their Mac. This issue is frustrating because it prevents users from installing other packages that depend on PHP 7.0, and it can also cause conflicts with other versions of PHP.

Suppressing this error message allows you to continue using your system without interruption, even if the PHP 7.0 formula is outdated. However, it's essential to note that having an outdated formula in place can lead to security vulnerabilities and compatibility issues.

⚠️ Common Causes

  • The primary reason for this error is that Homebrew has removed the php70 formula due to its age and lack of maintenance. As a result, the formula is no longer available for installation, and Homebrew attempts to tap it as a workaround.
  • Another possible cause is that you have installed an outdated version of Homebrew or have other issues with your system's package manager.

🔧 Proven Troubleshooting Steps

Suppressing Error Messages

  1. Step 1: Open the Terminal app on your Mac and type the following command to suppress the error message: `brew config delete homebrew/php/php70` This will remove the formula from Homebrew's configuration, preventing it from being tapped again.
  2. Step 2: Alternatively, you can use the `--force` option when installing packages that depend on PHP 7.0: `brew install package --force` This will force Homebrew to install the package without tapping the outdated php70 formula.

Updating Homebrew and Installing a Recent Formula

  1. Step 1: Update Homebrew to the latest version using the following command: `brew update && brew upgrade` This will ensure that you have the most recent version of Homebrew, which may include updated formulas for PHP.

🎯 Final Words

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions