linux的ollama卸载

时间:2025-02-22 22:40:07
  sudo systemctl stop ollama
  sudo systemctl disable ollama
  sudo rm /etc/systemd/system/
  sudo rm $(which ollama)
  sudo rm -r /usr/share/ollama
  sudo userdel ollama
  sudo groupdel ollama

我是用官方脚本安装的,卸载比较麻烦
建议 用snap  install ollama

卸载也方便snap remove ollama