您有选项 :
- You have many premium applications with GUI interface to do it for you.
- Manually remove the app from Applications folder on Mac, but this only removes the app without cleaning the associated files and folders.
- And my favorite that you can leverage UNIX shell "Terminal" to do it for you.
查找并删除与应用程序相关的目录。 例如 :
#this will list all the paths that exist for a specific app name
$ sudo find location -name Application
$ rm -rf location
帮助者函数 :
uninstall(){
if [ ! $@ ]; then
echo you must specify a program name you want to uninstall.
printf "Enter an App name >
"
read 1
while [[ -z $1 ]];do
printf "Enter valid App Name >
"
read 1
done
fi
# forcekill $1
paths=( /Applications $HOME) # where most installed applications lives
echo "Scanning directories for $1 ..."
saved_state=` for location in $paths ;do sudo find ${location} -iname "*$1*";done `
if [ ${#saved_state} -gt 0 ];then
echo "found `echo $saved_state | wc -l` dirs"
for line in $saved_state;do echo $line 2>/dev/null| sed -l s/ /\ /g |xargs rm -rf; echo "Deleting...
$line" ;done
echo "$1 has been removed."
else
echo "$1 program not found on your hard drive"
fi
}
如果您对 Mac 上的终端程序不熟悉, 只需打开终端应用程序并粘贴卸载功能, 然后由 :
uninstall App name
或者将其丢入.bashrc 或. profile 或. profile 中, 并让它重新使用。 指定正确的应用程序名称, 否则强制删除就会发生, 您无法恢复它 。