Skip to content

Commit e685ebe

Browse files
committed
fix ollama download link
fix #10
1 parent 4a339d8 commit e685ebe

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

docs/posts/2025/2025-03-07-installing-ollama-without-root.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,27 @@ categories:
77
comments: true
88
date:
99
created: 2025-03-07
10+
updated: 2026-06-10
1011
---
1112

1213
# Installing Ollama without root
1314

1415
Inspired by [the official guide](https://github.com/ollama/ollama/blob/main/docs/linux.md#manual-install), here is my method for installing (or updating) Ollama without root access.
1516

17+
!!! note "Ollama Archive Format Change: .tar.zst Requires zstd"
18+
Previously, Ollama provided archives in `.tar.gz` format, but now only `.tar.zst` is available, which requires [zstd](https://github.com/facebook/zstd).
19+
20+
Therefore, if we don't have root access, we need to prepare the `zstd` binary in a user-local directory beforehand and add it to `$PATH`.
21+
1622
```bash
1723
mkdir -p ~/src
1824
cd ~/src
19-
curl -L https://ollama.com/download/ollama-linux-amd64.tgz -o ollama-linux-amd64.tgz
25+
curl -L https://ollama.com/download/ollama-linux-amd64.tar.zst -o ollama-linux-amd64.tar.zst
2026
mkdir -p ~/opt/ollama
21-
tar -C ~/opt/ollama -xzf ollama-linux-amd64.tgz
27+
28+
# With zstd **binary** available in $PATH,
29+
# modern tar can automatically detect and use it to decompress .tar.zst archives.
30+
tar -C ~/opt/ollama -xf ollama-linux-amd64.tar.zst
2231
```
2332

2433
Add Ollama to $PATH:

0 commit comments

Comments
 (0)