Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-50989

Uninstalling MDB 4.4 via brew does not uninstall the DB Tools

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Packaging
    • Labels:
      None
    • Tools
    • ALL
    • Hide

      1. Install mongod via brew formula following the usual install procedure

      2. Uninstall with brew uninstall mongodb-community@4.4

      3. DB Tools remain.

      Show
      1. Install mongod via brew formula following the usual install procedure 2. Uninstall with brew uninstall mongodb-community@4.4 3. DB Tools remain.

      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!

            Assignee:
            Unassigned Unassigned
            Reporter:
            andrew.feierabend@mongodb.com Andrew Feierabend (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: