Skip to content

Instantly share code, notes, and snippets.

@Lwjivd
Created June 10, 2020 13:36
Show Gist options
  • Select an option

  • Save Lwjivd/c14067bf7e9d5ed1c9b38aac40abf309 to your computer and use it in GitHub Desktop.

Select an option

Save Lwjivd/c14067bf7e9d5ed1c9b38aac40abf309 to your computer and use it in GitHub Desktop.

Revisions

  1. @pwnsdx pwnsdx revised this gist Sep 16, 2016. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions uninstall_vmware.sh
    Original file line number Diff line number Diff line change
    @@ -4,14 +4,14 @@ remove() {
    entry="$1"

    echo -ne "Removing $entry ["
    sudo rm -rf "$entry" &> /tmp/uninstall-vmware.log
    sudo rm -rf "$entry"

    if [[ ! -e "$entry" ]]; then
    echo -e "OK"
    echo -ne "OK"
    else
    echo -e "FAILED"
    echo -ne "FAILED"
    fi
    echo -e "]"
    echo -ne "]"
    }

    remove "/Applications/VMware Fusion.app"
    @@ -21,6 +21,8 @@ remove "/Library/Preferences/VMware Fusion"
    remove "/private/var/root/Library/Logs/VMware"
    remove "/private/var/db/vmware"
    remove "/Library/Logs/VMware/"
    remove "/Library/Logs/VMware Fusion Services.log"
    remove "/Library/Logs/DiagnosticReports/vmware*"
    remove "/private/var/run/vmware"
    remove "/private/var/run/VMware Fusion Services.lock"
    remove "/private/var/run/VMware Fusion Services.sock"
    @@ -32,8 +34,6 @@ remove "$HOME/Library/Caches/com.vmware.fusion"
    remove "$HOME/Library/Preferences/VMware Fusion"
    remove "$HOME/Library/Logs/VMware"
    remove "$HOME/Library/Logs/VMware Fusion"
    remove "$HOME/Library/Logs/VMware Fusion Services.log"
    remove "$HOME/Library/Logs/DiagnosticReports/vmware*"
    remove "$HOME/Library/Preferences/VMware Fusion"
    remove "$HOME/Library/Preferences/com.vmware.fusion.LSSharedFileList.plist"
    remove "$HOME/Library/Preferences/com.vmware.fusion.plist"
  2. @pwnsdx pwnsdx revised this gist Sep 16, 2016. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion uninstall_vmware.sh
    Original file line number Diff line number Diff line change
    @@ -3,14 +3,15 @@
    remove() {
    entry="$1"

    echo -ne "Removing $entry"
    echo -ne "Removing $entry ["
    sudo rm -rf "$entry" &> /tmp/uninstall-vmware.log

    if [[ ! -e "$entry" ]]; then
    echo -e "OK"
    else
    echo -e "FAILED"
    fi
    echo -e "]"
    }

    remove "/Applications/VMware Fusion.app"
  3. @pwnsdx pwnsdx revised this gist Sep 16, 2016. 1 changed file with 9 additions and 4 deletions.
    13 changes: 9 additions & 4 deletions uninstall_vmware.sh
    Original file line number Diff line number Diff line change
    @@ -3,13 +3,13 @@
    remove() {
    entry="$1"

    echo -ne "Removing \e[1;34m$entry\e[0m... "
    echo -ne "Removing $entry"
    sudo rm -rf "$entry" &> /tmp/uninstall-vmware.log

    if [[ ! -e "$entry" ]]; then
    echo -e "\e[1;32mOK\e[0m"
    echo -e "OK"
    else
    echo -e "\e[1;31mFAILED\e[0m"
    echo -e "FAILED"
    fi
    }

    @@ -24,10 +24,15 @@ remove "/private/var/run/vmware"
    remove "/private/var/run/VMware Fusion Services.lock"
    remove "/private/var/run/VMware Fusion Services.sock"
    remove "/private/var/root/Library/Preferences/VMware Fusion"
    remove "/var/db/BootCaches/*/app.com.vmware.fusion.playlist"
    remove "$HOME/Library/Application Support/VMware Fusion"
    remove "$HOME/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.vmware.fusion.sfl"
    remove "$HOME/Library/Caches/com.vmware.fusion"
    remove "$HOME/Library/Preferences/VMware Fusion"
    remove "$HOME/Library/Logs/VMware"
    remove "$HOME/Library/Logs/VMware Fusion"
    remove "$HOME/Library/Logs/VMware Fusion Services.log"
    remove "$HOME/Library/Logs/DiagnosticReports/vmware*"
    remove "$HOME/Library/Preferences/VMware Fusion"
    remove "$HOME/Library/Preferences/com.vmware.fusion.LSSharedFileList.plist"
    remove "$HOME/Library/Preferences/com.vmware.fusion.plist"
    @@ -39,4 +44,4 @@ remove "$HOME/Library/Preferences/com.vmware.fusion.plist.lockfile"
    remove "$HOME/Library/Preferences/com.vmware.fusionDaemon.plist"
    remove "$HOME/Library/Preferences/com.vmware.fusionDaemon.plist.lockfile"
    remove "$HOME/Library/Preferences/com.vmware.fusionStartMenu.plist"
    remove "$HOME/Library/Preferences/com.vmware.fusionStartMenu.plist.lockfile"
    remove "$HOME/Library/Preferences/com.vmware.fusionStartMenu.plist.lockfile"
  4. Christopher Hiller renamed this gist Jul 27, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  5. @fnando fnando created this gist Oct 11, 2013.
    42 changes: 42 additions & 0 deletions uninstall_vmware.bash
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,42 @@
    #!/usr/bin/env bash
    # Usage: bash uninstall_vmware.bash
    remove() {
    entry="$1"

    echo -ne "Removing \e[1;34m$entry\e[0m... "
    sudo rm -rf "$entry" &> /tmp/uninstall-vmware.log

    if [[ ! -e "$entry" ]]; then
    echo -e "\e[1;32mOK\e[0m"
    else
    echo -e "\e[1;31mFAILED\e[0m"
    fi
    }

    remove "/Applications/VMware Fusion.app"
    remove "/Library/Application Support/VMware"
    remove "/Library/Application Support/VMware Fusion"
    remove "/Library/Preferences/VMware Fusion"
    remove "/private/var/root/Library/Logs/VMware"
    remove "/private/var/db/vmware"
    remove "/Library/Logs/VMware/"
    remove "/private/var/run/vmware"
    remove "/private/var/run/VMware Fusion Services.lock"
    remove "/private/var/run/VMware Fusion Services.sock"
    remove "/private/var/root/Library/Preferences/VMware Fusion"
    remove "$HOME/Library/Application Support/VMware Fusion"
    remove "$HOME/Library/Caches/com.vmware.fusion"
    remove "$HOME/Library/Preferences/VMware Fusion"
    remove "$HOME/Library/Logs/VMware"
    remove "$HOME/Library/Preferences/VMware Fusion"
    remove "$HOME/Library/Preferences/com.vmware.fusion.LSSharedFileList.plist"
    remove "$HOME/Library/Preferences/com.vmware.fusion.plist"
    remove "$HOME/Library/Preferences/com.vmware.fusionStartMenu.plist"
    remove "$HOME/Library/Preferences/com.vmware.fusion.LSSharedFileList.plist"
    remove "$HOME/Library/Preferences/com.vmware.fusion.LSSharedFileList.plist.lockfile"
    remove "$HOME/Library/Preferences/com.vmware.fusion.plist"
    remove "$HOME/Library/Preferences/com.vmware.fusion.plist.lockfile"
    remove "$HOME/Library/Preferences/com.vmware.fusionDaemon.plist"
    remove "$HOME/Library/Preferences/com.vmware.fusionDaemon.plist.lockfile"
    remove "$HOME/Library/Preferences/com.vmware.fusionStartMenu.plist"
    remove "$HOME/Library/Preferences/com.vmware.fusionStartMenu.plist.lockfile"