[GH-ISSUE #6316] ollama create will use a large amount of disk space in the /tmp #50474

Closed
opened 2026-04-28 15:59:00 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @garyyang85 on GitHub (Aug 12, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/6316

What is the issue?

ollama create cmd will use a large amount of disk space in the /tmp directory by default. Is there a way to change the /tmp to other directory?

OS

Linux

GPU

Nvidia

CPU

Intel

Ollama version

latest

Originally created by @garyyang85 on GitHub (Aug 12, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/6316 ### What is the issue? ollama create cmd will use a large amount of disk space in the /tmp directory by default. Is there a way to change the /tmp to other directory? ### OS Linux ### GPU Nvidia ### CPU Intel ### Ollama version latest
GiteaMirror added the bug label 2026-04-28 15:59:00 -05:00
Author
Owner

@jmorganca commented on GitHub (Aug 12, 2024):

Hi there, this should be fixed in https://github.com/ollama/ollama/releases/tag/v0.3.5. If you'd like to install it ahead of it being fully released you can run:

curl -fsSL https://ollama.com/install.sh | OLLAMA_VERSION=0.3.5 sh

Sorry about that!

<!-- gh-comment-id:2283016688 --> @jmorganca commented on GitHub (Aug 12, 2024): Hi there, this should be fixed in https://github.com/ollama/ollama/releases/tag/v0.3.5. If you'd like to install it ahead of it being fully released you can run: ``` curl -fsSL https://ollama.com/install.sh | OLLAMA_VERSION=0.3.5 sh ``` Sorry about that!
Author
Owner

@garyyang85 commented on GitHub (Aug 12, 2024):

Hi @jmorganca I want to find a way to use another disk directory instead of /tmp when run ollama create. I have a lot of space in other directories but not /tmp. Can I do this?

<!-- gh-comment-id:2283161490 --> @garyyang85 commented on GitHub (Aug 12, 2024): Hi @jmorganca I want to find a way to use another disk directory instead of /tmp when run ollama create. I have a lot of space in other directories but not /tmp. Can I do this?
Author
Owner

@rick-github commented on GitHub (Aug 13, 2024):

01b80e9ffc/envconfig/config.go (L260)

<!-- gh-comment-id:2285636332 --> @rick-github commented on GitHub (Aug 13, 2024): https://github.com/ollama/ollama/blob/01b80e9ffcd05825b413b61a91f9656723ce8afa/envconfig/config.go#L260
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#50474