Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Refusing to untap exolnet/deprecated because it contains the following installed formulae or casks:

I want to upgrade to PHP 8 with Homebrew on Mac. But there is a problem!

1.php -v

PHP 7.3.11 (cli) (built: Jun  5 2020 23:50:40) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.11, Copyright (c) 1998-2018 Zend Technologies 

2.brew install shivammathur/php/[email protected]

Updating Homebrew...
Warning: shivammathur/php/php 8.0.3 is already installed, it's just not linked.
To link this version, run:
  brew link php

3.brew link php

Error: Formulae found in multiple taps:
       * shivammathur/php/[email protected]
       * exolnet/deprecated/[email protected]

Please use the fully-qualified name (e.g. shivammathur/php/[email protected]) to refer to the formula.

4.brew untap exolnet/deprecated

Error: Refusing to untap exolnet/deprecated because it contains the following installed formulae or casks:
[email protected]

Nothing seems to work. I need to upgrade to PHP8. Any help is appreciated.

like image 216
Dext1232 Avatar asked Oct 31 '25 21:10

Dext1232


2 Answers

I was also facing this issue. I have upgraded my macOS to BigSur and started to facing the issue of to unlink the PHP version.

So problem was that, I have installed the two repo one is from the old version which was exolnet and in new version I have also installed shivammathur repo. So when I tried to switch the version the system got confused to which repo he should use. So, I untap the exolnet by brew untap exolnet/deprecated

like image 171
Abu Bakar Iqbal Avatar answered Nov 03 '25 00:11

Abu Bakar Iqbal


For me it worked to first uninstall then untap.

brew uninstall name_of_formula
brew untap cask_name/name_of_formula
like image 33
palmi Avatar answered Nov 03 '25 00:11

palmi