aboutsummaryrefslogtreecommitdiff
path: root/_posts/2024-02-23-uninstall-ollama-from-a-linux-box.md
blob: 635ba217b6089752774e9126379e22b84d5c3230 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---
title: Uninstall Ollama from a Linux box
permalink: /uninstall-ollama-from-a-linux-box.html
date: 2024-02-23
layout: post
draft: false
type: note
---
I have had some issues with Ollama not being up-to-date. If Ollama is installed with a curl command, it adds a systemd service.

    sudo systemctl stop ollama
    sudo systemctl disable ollama
    sudo rm /etc/systemd/system/ollama.service
    sudo systemctl daemon-reload
    
    sudo rm /usr/local/bin/ollama
    
    sudo userdel ollama
    sudo groupdel ollama
    
    rm -r ~/.ollama
    sudo rm -rf /usr/share/ollama
    

That is about it.