
Every question you type into a web chatbot leaves your machine. It travels to a server you do not own, sits in logs you cannot see, and comes back with an answer you cannot check. That is fine for a quick fact. That is a bad deal for work code, client notes, or anything you would rather keep to yourself. Then the free tier runs out, the subscription creeps up, and the day your internet drops, your assistant stops thinking.
Ollama fixes that by running the model on your own hardware. Your prompts stay in your house. No monthly fee, no account, no connection needed once the model is downloaded. Fedora 45 is a good home for it. The whole setup takes about ten minutes on a plain CPU box with 8 GB of RAM. No graphics card required.
But Fedora has a trap waiting at the first step, and plenty of people walk straight into it. Type sudo dnf install ollama and you get version 0.24.0, months behind the current 0.40.x runtime, with its models stashed in /var/lib/ollama instead of the folder the official installer uses. Two installs, one port. The steps below show how to install Ollama on Fedora 45 the clean way. They check for that old package first and throw it out, then use the official script, so you end up with one clean install, one small model, and a chat running in your terminal.
What you will end up with
By the end, Ollama runs as a service on 127.0.0.1:11434. You will have pulled llama3.2:1b, talked to it in your terminal, and poked it through its API. Nothing leaves your machine unless you change the settings near the end.
Prerequisites
- Fedora 45, on a desktop, server, or VPS, with a 64-bit CPU
- A user account with
sudoprivileges - A working internet connection
- At least 8 GB of RAM and 10 GB of free disk space
- About 10 to 15 minutes, most of it waiting for the model to download
Eight gigabytes is the floor, not the sweet spot. A 7B model wants 16 GB. Models live in /usr/share/ollama/.ollama/models with the script install, so check space first:
df -h / && free -h
The script install works with SELinux enforcing, so leave it on.
Step 1: Update Fedora and install curl and zstd
sudo dnf update -y
sudo dnf install -y curl zstd
Both are on most stock Fedora images, but check anyway. curl downloads the installer, and zstd extracts it:
curl --version | head -1
zstd --version
Step 2: Remove the old Fedora ollama package if it is there
Both installs use port 11434, so do not run two of them at once. Check first:
dnf list installed ollama
ollama --version
If dnf says the package is not installed, skip ahead. If it shows ollama 0.24.0-4.fc45 or any version from the Fedora repos, remove it:
sudo dnf remove ollama
That removes the old service too. Its models live in /var/lib/ollama, so you would need to pull them again after the switch. Starting clean with one install beats mixing two.
Step 3: Install Ollama on Fedora 45 with the official script
One command does the install. It downloads the current release, puts the binary in /usr/local, creates an ollama system user, and sets up a systemd service that only listens on 127.0.0.1:11434:
curl -fsSL https://ollama.com/install.sh | sh
Give it a minute. It will ask for sudo when it needs to write to system folders. When it finishes, the service should already be running.
Step 4: Check the Ollama service is actually running
ollama --version
systemctl is-active ollama
systemctl is-enabled ollama
curl http://127.0.0.1:11434/api/version
curl http://127.0.0.1:11434/api/tags
ollama --version should print something in the 0.40.x line or newer. One tested guide saw 0.40.11 on Fedora 45 back in October 2026. is-active should print active, is-enabled should print enabled, and the tags call should come back empty on a fresh install. Empty is fine. You have not pulled a model yet.
Step 5: Run your first model on CPU
Start small. llama3.2:1b is only 1.3 GB, needs about 4 GB of RAM, and answers fast enough on CPU to tell in a minute whether everything works:
ollama pull llama3.2:1b
Wait for the download to finish. If it stalls, run the same command again. Then start a chat:
ollama run llama3.2:1b
Try a short prompt, like this one:
Explain what a Linux kernel does in two sentences.
You should get a short answer and a fresh prompt. The first reply can feel slow on CPU. Type /bye when you are done. The model stays on disk.
| Model | Size | RAM needed | Best for |
|---|---|---|---|
qwen3:0.6b |
523 MB | 2 to 4 GB | Very small VPS, quick smoke test |
llama3.2:1b |
1.3 GB | 4 GB | First CPU test, recommended here |
llama3.2:3b |
About 2 GB | 8 GB | Better answers on a normal VPS |
llama3.1:8b |
About 4.7 GB | 16 GB | More capable chat, 16 GB RAM only |
ollama list shows your models, ollama rm <model> deletes one, and ollama ps shows which are loaded. See also install DeepSeek on Fedora 41, install Open WebUI on Fedora 42, and install Ollama on Ubuntu 26.04.
Step 6: Try the Ollama API with curl
The terminal chat is fun for an afternoon. The API is the part that earns its keep, because scripts and apps can send prompts and read answers back without a human in the loop.
curl http://127.0.0.1:11434/api/generate -d '{
"model": "llama3.2:1b",
"prompt": "Write a one-line summary of Fedora 45.",
"stream": false
}'
You should get a JSON object back, with the answer in its response field. A connection error means the service is not listening. Go back to Step 4.
Install Methods Compared
| Method | When to choose it | Downsides |
|---|---|---|
Official script: curl -fsSL https://ollama.com/install.sh | sh |
Most Fedora 45 installs, when you want the current runtime | You get whatever version is current |
Fedora package: sudo dnf install ollama |
You want everything from Fedora repos | 0.24.0 on Fedora 45, models in /var/lib/ollama |
| Docker: official image, port 11434 mapped | You already run Docker and want isolation | Extra overhead, GPU setup needs extra work |
Letting another computer reach Ollama, safely
Out of the box, Ollama only listens on 127.0.0.1. Leave it that way unless another trusted machine on your LAN needs it. Then you need two changes: the listen address, and the firewall.
First, the listen address. Use a systemd drop-in, which a future update will not overwrite. Do not edit /etc/systemd/system/ollama.service directly, because the installer rewrites it on update:
sudo systemctl edit ollama
Add this, then reload and restart:
[Service]
Environment="OLLAMA_HOST=0.0.0.0"
sudo systemctl daemon-reload
sudo systemctl restart ollama
Second, the firewall. Fedora uses firewalld, on by default. Even after you change the listen address, a LAN machine will still be blocked until you open the port:
sudo firewall-cmd --permanent --add-port=11434/tcp
sudo firewall-cmd --reload
sudo firewall-cmd --list-ports
Now Ollama listens on every interface. It has no built-in login, so anyone who can reach port 11434 can use your models and your CPU. Never put that port on the open internet. Allow only trusted IPs, and use a reverse proxy with authentication or a VPN outside your network.
Do not disable SELinux for this. If a denial shows up, check sudo ausearch -m avc -ts recent first.
Fix Ollama on Fedora 45 when something goes wrong
1. The installer fails, or it complains about zstd or curl
What you see: the script stops early, often about a missing tool. Why it happens: curl or zstd is missing, or the download was interrupted. Fix it like this:
sudo dnf install -y curl zstd
curl -fsSL https://ollama.com/install.sh | sh
2. ollama: command not found, or the service is not running
What you see: the shell cannot find ollama, or the service is not active. Why it happens: the binary is in /usr/local/bin, and either the install never finished, or your shell has not picked up the new path. Check it with ls -l /usr/local/bin/ollama. If the binary is there but the plain command fails, open a new terminal or run hash -r. If it is missing, run the installer again:
systemctl status ollama --no-pager
sudo journalctl -u ollama --no-pager | tail -50
sudo systemctl start ollama
3. Connection refused on 127.0.0.1:11434
What you see: curl says connection refused. Why it happens: the service is not running, or it listens on a different address. Check whether it is active, then test the port:
systemctl is-active ollama
curl http://127.0.0.1:11434/api/version
If nothing answers, restart it with sudo systemctl restart ollama, running sudo systemctl daemon-reload first if you changed OLLAMA_HOST. A local curl that works and a LAN curl that fails almost always means firewalld still has the port closed.
4. A model pull is slow, or it fails with a disk error
What you see: the pull crawls, stops, or complains about disk space. Why it happens: a slow network makes a big download feel broken, and a full disk stops it cold. Let it finish, and run it again if it stops early. For disk trouble, check df -h / and delete a model with ollama rm <model>. Do not delete files in the models directory by hand.
5. GPU warnings, and nonsense answers on Intel graphics
What you see: Ollama warns that no NVIDIA or AMD GPU was found, or the model runs but its answers make no sense. Why it happens: with no GPU, Ollama falls back to CPU, and that warning is fine. On Intel integrated graphics, though, Ollama can reach for the GPU through Vulkan and come back with garbled output. That is what Fedora Magazine ran into on a ThinkPad with Iris Xe graphics. The fix that worked there is to hide the GPU so Ollama sticks to CPU:
sudo systemctl edit ollama
Add this under [Service], then reload and restart:
[Service]
Environment="GGML_VK_VISIBLE_DEVICES=-1"
sudo systemctl daemon-reload
sudo systemctl restart ollama
Try the same prompt again. If the answers are sane now, the GPU path was the problem. Leave the setting in place.
FAQ
Does Ollama work on Fedora 45 without a GPU?
Yes. Ollama runs in CPU-only mode, and the small models here were picked for CPU. You will see a GPU warning, but that is just Ollama telling you it found no GPU.
Should I install Ollama with dnf or with the official script?
Use the official script for the current runtime. The Fedora package gives you 0.24.0, while the script installs the 0.40.x line, and the two keep models in different folders. Do not install both.
How much RAM do I need to run AI locally with Ollama?
At least 8 GB of RAM and 10 GB of free disk. llama3.2:1b needs about 4 GB, a 3B model about 8 GB, and an 8B model about 16 GB.
Where are Ollama models stored on Fedora?
With the official script, they are in /usr/share/ollama/.ollama/models. With the Fedora package, they are in /var/lib/ollama. Use ollama list to see them and ollama rm <model> to delete one.
Can I use Ollama from another computer on my network?
Yes, if you change the listen address on purpose. Set OLLAMA_HOST=0.0.0.0 in a systemd drop-in, restart Ollama, and open port 11434 in firewalld. Then protect it with a firewall rule, a VPN, or a reverse proxy. Never expose it directly to the internet.
Conclusion
You are done. Ollama is running, a small model is on disk, and the API answers. No prompt left your machine to get here. From here, try a larger model that fits your RAM, or put a front end on it. See install Open WebUI on Fedora 42, install DeepSeek on Fedora 41, and install Ollama on Ubuntu 26.04.
Last tested: 4 December 2026, on Fedora 45, Ollama 0.40.x line. The installer downloads the current release, so yours may be newer than 0.40.11, tested on Fedora 45 in October 2026. The Fedora dnf package was 0.24.0-4.fc45 at the time of writing. Run ollama --version after install to confirm yours.