我想知道如何从 Ubuntu 卸载 Mathematica。
apt-get remove 不起作用。
答案1
链接http://support.wolfram.com/kb/4730提供以下信息:
Linux
要卸载 Mathematica,请删除以下目录。请备份这些目录中您想要保留的所有文档:
/usr/share/Mathematica/
~/.Mathematica/Licensing/mathpass
/usr/local/Wolfram/Mathematica/
答案2
只需删除安装目录($InstallationDirectory
在 Mathematica 中评估即可找到它)。Mathematica 9 以自解压 shell 脚本的形式提供,而不是以软件包的形式提供。
math
如果您要求安装程序为、MathKernel
和Mathematica
命令创建符号链接,例如,/usr/local/bin/
您也可以删除它们。
您可以根据需要在$BaseDirectory
(/usr/share/Mathematica
)和$UserBaseDirectory
( )中备份用户设置。~/.Mathematica
答案3
要彻底删除,包括图标和链接请使用以下代码:
rm -R ~/.Mathematica
sudo rm -R /usr/share/Mathematica
sudo rm -R /usr/local/Wolfram
sudo rm /usr/share/man/man1/mathematica.1
sudo rm /usr/share/mime/application/mathematica.xml
sudo rm /usr/share/mime/application/mathematicaplayer.xml
sudo rm /usr/share/mime/packages/wolfram-mathematica.xml
sudo rm /usr/share/mime/packages/wolfram-mathematicaplayer.xml
sudo rm /usr/local/bin/mathematica
sudo rm /usr/local/share/applications/wolfram-mathematica9.desktop
sudo rm /usr/share/icons/hicolor/128x128/apps/wolfram-mathematica.png
sudo rm /usr/share/icons/hicolor/128x128/apps/wolfram-mathematicaplayer.png
sudo rm /usr/share/icons/hicolor/128x128/mimetypes/application-mathematica.png
sudo rm /usr/share/icons/hicolor/128x128/mimetypes/application-mathematicaplayer.png
sudo rm /usr/share/icons/hicolor/128x128/mimetypes/gnome-mime-application-mathematica.png
sudo rm /usr/share/icons/hicolor/128x128/mimetypes/gnome-mime-application-mathematicaplayer.png
sudo rm /usr/share/icons/hicolor/32x32/apps/wolfram-mathematica.png
sudo rm /usr/share/icons/hicolor/32x32/apps/wolfram-mathematicaplayer.png
sudo rm /usr/share/icons/hicolor/32x32/mimetypes/application-mathematica.png
sudo rm /usr/share/icons/hicolor/32x32/mimetypes/application-mathematicaplayer.png
sudo rm /usr/share/icons/hicolor/32x32/mimetypes/gnome-mime-application-mathematica.png
sudo rm /usr/share/icons/hicolor/32x32/mimetypes/gnome-mime-application-mathematicaplayer.png
sudo rm /usr/share/icons/hicolor/64x64/apps/wolfram-mathematica.png
sudo rm /usr/share/icons/hicolor/64x64/apps/wolfram-mathematicaplayer.png
sudo rm /usr/share/icons/hicolor/64x64/mimetypes/application-mathematica.png
sudo rm /usr/share/icons/hicolor/64x64/mimetypes/application-mathematicaplayer.png
sudo rm /usr/share/icons/hicolor/64x64/mimetypes/gnome-mime-application-mathematica.png
sudo rm /usr/share/icons/hicolor/64x64/mimetypes/gnome-mime-application-mathematicaplayer.png