Cannot install/reinstall Cisco Anyconnect after removing Application Folder on macOS

When just removing the Cisco Anyconnect Application folder on macOS, you won't be able to reinstall the same or a newer version of the client because macOS thinks that the Application is still installed.
1 answer

Manual Uninstall using Terminal

Here's the procedure for manually uninstalling the AnyConnect client from a Mac OS X system:
As root, run the following shell script from the Terminal:
$ sudo /opt/cisco/vpn/bin/vpn_uninstall.sh
You will be prompted for your password. Once you enter it, just follow the steps

If you still having trouble and/or the new Cisco Anyconnect installation complains that you have a version installed, follow these steps:
Enter these commands to clean out the old Cisco VPN kernel extension and reboot the system.

sudo -s
rm -rf /System/Library/StartupItems/CiscoVPN
rm -rf /Library/StartupItems/CiscoVPN
rm -rf /System/Library/Extensions/CiscoVPN.kext
rm -rf /Library/Extensions/CiscoVPN.kext
rm -rf /Library/Receipts/vpnclient-kext.pkg
rm -rf /Library/Receipts/vpnclient-startup.pkg
reboot

If you installed the Cisco VPN for Mac version 4.1.08005 package, enter these commands to delete the misplaced files. The deletion of these files will not affect your system, since applications do not use these misplaced files in their current location.

sudo -s
rm -rf /Cisco\ VPN\ Client.mpkg
rm -rf /com.nexUmoja.Shimo.plist
rm -rf /Profiles
rm -rf /Shimo.app
exit

Enter these commands if you no longer need the old Cisco VPN Client or Shimo.

sudo -s
rm -rf /Library/Application\ Support/Shimo
rm -rf /Library/Frameworks/cisco-vpnclient.framework
rm -rf /Library/Extensions/tun.kext
rm -rf /Library/Extensions/tap.kext
rm -rf /private/opt/cisco-vpnclient
rm -rf /Applications/VPNClient.app
rm -rf /Applications/Shimo.apprm -rf /private/etc/opt/cisco-vpnclient
rm -rf /Library/Receipts/vpnclient-api.pkg
rm -rf /Library/Receipts/vpnclient-bin.pkg
rm -rf /Library/Receipts/vpnclient-gui.pkg
rm -rf /Library/Receipts/vpnclient-profiles.pkg
rm -rf ~/Library/Preferences/com.nexUmoja.Shimo.plist
rm -rf ~/Library/Application\ Support/Shimo
rm -rf ~/Library/Preferences/com.cisco.VPNClient.plist
rm -rf ~/Library/Application\ Support/SyncServices/Local/TFSM/com.
nexumoja.Shimo.Profiles
rm -rf ~/Library/Logs/Shimo*
rm -rf ~/Library/Application\ Support/Shimo
rm -rf ~/Library/Application\ Support/Growl/Tickets/Shimo.growlTicket
exit

Finally this.

sudo pkgutil --forget com.cisco.pkg.anyconnect.vpn

Taggings: