Skip to content

How-ToOS

How to Update Ollama on Linux (and Uninstall It Cleanly)

How to update Ollama on Linux: check your version, rerun the official install script or re-extract the manual package, install a specific version with OLLAMA_VERSION, check the systemd service and logs afterwards, and remove Ollama cleanly, including where models are stored.

By , Systems & Technical Editor

3 min read

How to Update Ollama on Linux (and Uninstall It Cleanly)

It's based on Ollama's official Linux and FAQ documentation, read on 26 November 2026. Ollama changes often, so check the official Linux page if a command below behaves differently on your system.

New Ollama releases can add support for new models and features, so it's worth keeping it current on a Linux AI box. Windows users can follow our guide to updating Ollama on Windows; this one covers Linux, where you update by reinstalling over the top. If you haven't installed it yet, start with how to install Ollama on Linux.

Quick answer

Task

Command

Check your version

ollama -v

Update (official script)

Run the install script again (Step 2)

Install a specific version

Set OLLAMA_VERSION when running the script

Check the service

sudo systemctl status ollama

View the service logs

journalctl -e -u ollama

Step 1: check which version you have

Run:

ollama -v

Compare the number with the latest release on Ollama's GitHub releases page.

Step 2: update with the install script

Ollama's documentation says to update by running the install script again:

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

This is the same command used for a fresh install. Your downloaded models aren't part of the program files; on Linux, Ollama's FAQ says they're stored in /usr/share/ollama/.ollama/models by default, and our guide to moving Ollama models to another drive covers changing that. Run ollama -v afterwards to confirm the new version.

Step 2 (alternative): update a manual install

If you installed Ollama manually from the package rather than with the script, Ollama's documentation says you can update by downloading it again:

curl -fsSL https://ollama.com/download/ollama-linux-amd64.tar.zst | sudo tar x -C /usr

The documentation also advises that when upgrading from a prior version you should remove the old libraries first with sudo rm -rf /usr/lib/ollama. If you have an AMD graphics card, Ollama provides an additional ROCm package (ollama-linux-amd64-rocm.tar.zst) to extract the same way, and ARM64 systems use ollama-linux-arm64.tar.zst instead.

Installing a specific version

If a new release causes a problem, or you want to try a pre-release, set the OLLAMA_VERSION environment variable when running the script. Ollama's own example is:

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

Replace the number with the version you want from the releases page.

Step 3: check the service after updating

If Ollama runs as a startup service, check it's running:

sudo systemctl status ollama

If something has gone wrong, view the logs with journalctl -e -u ollama. Our guide to finding Ollama logs explains what to look for, and how to check Ollama is using your GPU confirms the graphics card is still being used after the update.

Ollama's documentation says you can customise the service, including environment variables, with sudo systemctl edit ollama or by creating an override file at /etc/systemd/system/ollama.service.d/override.conf. Keeping changes there, rather than in the main service file, makes them easier to keep track of when you update.

How to uninstall Ollama on Linux

To remove Ollama completely, Ollama's documentation lists these steps. First stop and remove the service:

sudo systemctl stop ollama
sudo systemctl disable ollama
sudo rm /etc/systemd/system/ollama.service

Then remove the libraries and the program itself:

sudo rm -r $(which ollama | tr 'bin' 'lib')
sudo rm $(which ollama)

Finally, remove the downloaded models and the Ollama service user and group:

sudo userdel ollama
sudo groupdel ollama
sudo rm -r /usr/share/ollama

That last step deletes every downloaded model, so skip it if you plan to reinstall and keep your models. Windows users can follow how to uninstall Ollama on Windows instead.

Our verdict

Updating Ollama on Linux is a one-liner: run curl -fsSL https://ollama.com/install.sh | sh again, then check ollama -v and systemctl status ollama. Use OLLAMA_VERSION to pin or roll back to a particular release, and keep your custom settings in a systemd override file. To remove it completely, follow Ollama's uninstall steps, remembering that deleting /usr/share/ollama also deletes your models.

The bottom line

Updating Ollama on Linux is a one-liner: run curl -fsSL https://ollama.com/install.sh | sh again, then check ollama -v and systemctl status ollama. Use OLLAMA_VERSION to pin or roll back to a particular release, and keep your custom settings in a systemd override file. To remove it completely, follow Ollama's uninstall steps, remembering that deleting /usr/share/ollama also deletes your models.

Sources

  1. 01Ollama documentation, Linux
  2. 02Ollama documentation, FAQ

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

How to Enable Jumbo Frames in Windows 11 (and When You Should)

How-To

How to Enable Jumbo Frames in Windows 11 (and When You Should)

Jumbo frames are Ethernet frames of up to about 9KB instead of the standard 1.5KB. Intel says they can cut CPU use and improve efficiency for large transfers, but every device on the path must support the same size or packets are dropped. Enable Jumbo Packet in Device Manager or PowerShell, match your switch and NAS, test with ping and turn it off if problems appear.

Marcus Thorne5 min

Xbox Game Bar vs NVIDIA App: Which Overlay Should You Use?

Versus

Xbox Game Bar vs NVIDIA App: Which Overlay Should You Use?

Xbox Game Bar is built into Windows, opens with Win + G and handles quick clips, screenshots, performance metrics and Xbox chat. The NVIDIA App, for GeForce RTX 20 to 50 Series cards, adds Instant Replay of the last 30 seconds, automatic Highlights, AV1 recording on RTX 40 Series and an overlay with FPS, 1% low and latency stats. GeForce owners should record with NVIDIA.

Callum Reid4 min

How to Use PowerToys FancyZones to Snap Windows Into Custom Layouts

How-To

How to Use PowerToys FancyZones to Snap Windows Into Custom Layouts

FancyZones, part of Microsoft's free PowerToys, lets you build custom window layouts and snap apps into them. Open the editor with Win + Shift + `, pick or create a Grid or Canvas layout, then hold Shift while dragging a window into a zone. Turn on Override Windows Snap for Win + arrow shortcuts, and run PowerToys as administrator to snap elevated apps.

Marcus Thorne4 min

Ollama vs Open WebUI: What's the Difference and Do You Need Both?

Versus

Ollama vs Open WebUI: What's the Difference and Do You Need Both?

Ollama vs Open WebUI explained: Ollama runs AI models on your PC and serves them on a local API at localhost:11434, while Open WebUI is a self-hosted browser chat interface that connects to Ollama and OpenAI-compatible servers. What each does, why Open WebUI doesn't speed up chat, and when you need both.

Callum Reid3 min