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.