This commit is contained in:
Debarshi Ray 2025-10-07 15:40:58 +02:00 committed by GitHub
commit 1cd53b57f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View File

@ -209,7 +209,7 @@ Refer to the section [above](#how-do-i-configure-ollama-server) for how to set e
## Where are models stored?
- macOS: `~/.ollama/models`
- Linux: `/usr/share/ollama/.ollama/models`
- Linux: `/var/lib/ollama/.ollama/models`
- Windows: `C:\Users\%username%\.ollama\models`
### How do I set them to a different location?

View File

@ -60,7 +60,7 @@ sudo tar -C /usr -xzf ollama-linux-arm64.tgz
Create a user and group for Ollama:
```shell
sudo useradd -r -s /bin/false -U -m -d /usr/share/ollama ollama
sudo useradd -r -s /bin/false -U -m -d /var/lib/ollama ollama
sudo usermod -a -G ollama $(whoami)
```
@ -187,7 +187,7 @@ sudo rm $(which ollama)
Remove the downloaded models and Ollama service user and group:
```shell
sudo rm -r /usr/share/ollama
sudo rm -r /var/lib/ollama
sudo userdel ollama
sudo groupdel ollama
```

View File

@ -116,7 +116,7 @@ trap install_success EXIT
configure_systemd() {
if ! id ollama >/dev/null 2>&1; then
status "Creating ollama user..."
$SUDO useradd -r -s /bin/false -U -m -d /usr/share/ollama ollama
$SUDO useradd -r -s /bin/false -U -m -d /var/lib/ollama ollama
fi
if getent group render >/dev/null 2>&1; then
status "Adding ollama user to render group..."