-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Packaging
-
None
-
Tools
-
ALL
-
Installing the 4.4 MDB binaries via brew following the usual install procedure now includes the Database Tools as of 4.4.1. However, uninstalling the MDB binaries, and even untapping the formula, does not remove the DB Tools, which remain on-box, linked in /usr/local/bin and accessible in the default $PATH.
The user must manually run a:
brew uninstall mongodb-database-tools
to remove the DB Tools after uninstalling MDB.
I've attached the usual repro steps.
I'm no brew expert by any means, but these formulae follow similar logic to RPMs, and sure enough there appears to be the concept of an "uninstall postflight", found here in this example.
Potentially calling out to system or system_command within the uninstall_postflight stanza might then allow us to just run brew uninstall mongodb-database-tools ourselves. However, this seems a bit strange, as we are running a brew command within an active brew uninstallation step. Up to you. Hope this helps!