PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, July 2, 2022

[FIXED] How can I remove xampp from brew on macos?

 July 02, 2022     homebrew, macos, xampp     No comments   

Issue

I installed an application, xampp, with brew sometime ago. I naively uninstalled it via dragging the application to the trash in Finder. Now brew is unable to automatically clean it up or remove it from its list of installed applications. When I try to uninstall with brew this is what I get:

$ brew uninstall --cask xampp
==> Uninstalling Cask xampp
==> Running uninstall script /Applications/XAMPP/uninstall.app/Contents/MacOS/osx-x86_64
Error: uninstall script /Applications/XAMPP/uninstall.app/Contents/MacOS/osx-x86_64 does not exist.
$ brew uninstall xampp
==> Uninstalling Cask xampp
==> Running uninstall script /Applications/XAMPP/uninstall.app/Contents/MacOS/osx-x86_64
Error: uninstall script /Applications/XAMPP/uninstall.app/Contents/MacOS/osx-x86_64 does not exist.

and each time I run brew upgrade I get this:

$ brew upgrade
==> Casks with 'auto_updates true' or 'version :latest' will not be upgraded; pass `--greedy` to upgrade them.
==> Upgrading 1 outdated package:
xampp 7.4.1,0 -> 8.0.13-0
==> Upgrading xampp
==> Downloading https://downloadsapachefriends.global.ssl.fastly.net/xampp-files/8.0.13/xampp-osx-8.0.13-0-installer.dmg
Already downloaded: /Users/apealed/Library/Caches/Homebrew/downloads/378bcf87920b39fd312ed7b1fcfdb8a7df76bd3bdf037c0af247b64718a4cabd--xampp-osx-8.0.13-0-installer.dmg
==> Running uninstall script /Applications/XAMPP/uninstall.app/Contents/MacOS/osx-x86_64
==> Purging files for version 8.0.13-0 of Cask xampp
Error: xampp: uninstall script /Applications/XAMPP/uninstall.app/Contents/MacOS/osx-x86_64 does not exist.

How can I "cleanup" this application from brew?


Solution

You have to manually remove the folder of the application from the Caskroom.

If you are on an Intel Mac:

rm -rf /usr/local/Caskroom/xampp

If you are on an M1 Mac:

rm -rf /opt/homebrew/Caskroom/xampp


Answered By - Ortomala Lokni
Answer Checked By - Mildred Charles (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing