Ollama lets you download and run large language models on your own computer, then chat with them from a terminal or connect compatible local apps. This guide shows how to install it on Linux Mint, check that its background service is working, and run a first model. You will need an internet connection for installation and the initial model download; after that, many models can run locally without sending prompts to an online AI service.
What You’ll Need
- A Linux Mint computer with a supported 64-bit processor. Ollama supports common x86-64 Linux systems; support can vary with less common CPU architectures.
- An account with administrator access, so you can install software and check system services.
- An internet connection and enough free disk space for a model. Model sizes vary considerably, and larger models need more memory and storage.
- A terminal. Open one with Ctrl+Alt+T, or find Terminal in the Mint application menu.
A dedicated graphics card is optional. Ollama can use the CPU, while supported GPUs may accelerate model responses. Check your available memory and storage before choosing a model; a model that downloads successfully may still be too large to run comfortably on your computer.
Step-by-Step
- Update Mint and install curl. In Terminal, run
sudo apt update, thensudo apt install -y curl. Enter your Mint account password if prompted; the terminal does not show characters as you type. Updating package information helps avoid installation problems, and curl is needed to fetch Ollama’s installer. - Run the official Linux installer. Use Ollama’s published installation command:
curl -fsSL https://ollama.com/install.sh | sh. The script downloads and installs the current Linux release and may ask for administrator permission. Read the terminal output, and wait for it to finish rather than closing the window. If you prefer to inspect a script before running it, download it to a file first withcurl -fsSL https://ollama.com/install.sh -o install.sh, inspect it withless install.sh, and then runsh install.sh. - Check that the command is available. Run
ollama --version. A version number indicates that the command is installed and available in your terminal. If Mint says the command cannot be found, close and reopen Terminal, then try again. If it remains missing, review the installer’s final messages and the troubleshooting section below. - Confirm the Ollama service is running. The installer normally sets up Ollama as a system service on Linux. Check it with
systemctl status ollama. Look for an active, running status. Pressqto leave the status view. If it is stopped, start it withsudo systemctl start ollama; to have it start automatically after reboots, usesudo systemctl enable ollama. You can check again withsystemctl status ollama. - Download a model. Pick a model from the Ollama library and follow its model page for the exact name and available tags. For a straightforward first test, run
ollama run llama3.2. Ollama will fetch that model if it is not already present, so the first run can take time and use several gigabytes of disk space. Other model names and sizes are available; check their requirements before downloading, especially if your computer has limited RAM. - Send a prompt and exit the chat. When the model is ready, type a question at the prompt, such as
Explain what a Linux system service does in two sentences., and press Enter. The model’s reply appears in the terminal. To leave the interactive chat, type/byeand press Enter, or use Ctrl+D. You can start the same model later withollama run llama3.2; it does not need to download again unless it has been removed or updated. - Verify your installed models. Run
ollama listto see models stored locally, orollama psto see models currently loaded. A successful chat confirms the main installation path works. For later use, the basic pattern isollama run model-name, substituting the exact model name from its library page.
Ollama also provides a local service for other applications to use. By default, its API is available on the computer itself, typically at http://localhost:11434. You do not need to open a browser to this address to use the terminal. Applications that integrate with Ollama usually let you enter the local address and select a model; consult the application’s instructions for its setup details.
Common Mistakes
- Expecting the model to be included with Ollama. Ollama is the runtime; models are separate downloads. The first
ollama runfor a model may need to download a substantial file. - Choosing a model that exceeds available resources. A model may download but respond slowly, fail to load, or cause the desktop to run out of memory. Check model size and system requirements, and try a smaller model if needed.
- Starting a second server unnecessarily. The system service generally runs Ollama already. Running
ollama servemanually at the same time can produce a message that the port is already in use. Use the service commands to manage the installed server. - Assuming a GPU must be installed. A compatible GPU can help with performance, but it is not required to install or use Ollama. CPU inference is possible, though it may be slower.
- Copying a model name from an old guide. Model tags and availability can change. Use the current library listing and copy the exact name shown there rather than guessing a tag.
Tips
- Start with a smaller model to confirm Ollama works before downloading a larger one. Close memory-intensive applications if a model is struggling to load.
- Keep Mint and your graphics drivers up to date. For NVIDIA acceleration, install a compatible driver through Mint’s Driver Manager, then check that
nvidia-smidetects the card. The CUDA toolkit is not normally required just to use Ollama’s standard installer. - Use
ollama listto review downloads andollama rm model-nameto remove a model you no longer need. Removing a model frees its storage, but make sure you use the exact name shown in the list. - Keep the local API private unless you understand the network and security implications. Do not expose the service to the internet just to connect a local desktop application; the default local address is sufficient for apps running on the same computer.
- If you want models stored on a different drive, Ollama supports a model directory setting. Configure the service’s
OLLAMA_MODELSenvironment variable according to Ollama’s Linux service instructions, ensure the service account can write to that directory, and restart the service. Avoid moving model files by hand while Ollama is running.
Troubleshooting
The installer says curl is missing: run sudo apt update followed by sudo apt install -y curl, then rerun the official install command. If downloads fail, check your network connection, proxy settings, and whether the official Ollama site is reachable from your network.
The command is not found after installation: reopen Terminal and try ollama --version. If it still fails, read the installer’s output for errors and confirm it completed successfully. Avoid downloading an unrelated package or adding an unknown repository as a workaround.
The service is inactive or commands cannot connect: check systemctl status ollama, then try sudo systemctl restart ollama. To see recent diagnostic messages, run sudo journalctl -u ollama --no-pager -n 50. Look for permission errors, missing files, or a port conflict in the output.
A model download stalls or fails: check that you have a stable connection and sufficient free disk space, then retry the same ollama run command. If the disk is nearly full, remove an unused model with ollama rm model-name. Do not delete Ollama’s model directory manually while a download is in progress.
The model is very slow or will not load: try a smaller model, close other memory-heavy programs, and check the terminal for an out-of-memory message. If you expected GPU acceleration, check the GPU’s driver with the vendor’s diagnostic tool and review Ollama’s current hardware support documentation. An unsupported GPU may simply leave the model running on the CPU.
Frequently Asked Questions
Is Ollama free to install on Linux Mint?
The Ollama software is available without an installation charge, and many library models can be downloaded and run locally. Model licenses differ, so read the license for a particular model if you plan to use its output commercially or redistribute it.
Can I use Ollama without a graphics card?
Yes. Ollama can run models using the CPU. Responses may be slower than with supported GPU acceleration, and the model still needs enough system memory and disk space to run.
Does installing Ollama download an AI model?
No. The installation provides Ollama; you choose and download a model separately. Running a model for the first time, for example with ollama run llama3.2, triggers its download if it is not already on the computer.
Does Ollama work offline?
After Ollama and a model have been installed and downloaded, you can generally use that model without an internet connection. You need internet access for installation, new model downloads, and updates. Local use does not mean that every app connected to Ollama is automatically private, so check the app’s own settings and behavior.
Where are Ollama models stored?
The default location depends on how Ollama is running and the Linux service configuration. You can change the location using the OLLAMA_MODELS setting. Use the official Linux service guidance when changing it, and make sure the Ollama service account has permission to access the chosen directory.
How do I uninstall Ollama?
Follow Ollama’s current Linux uninstall instructions, which remove the installed service and program files. Models can take up considerable space and may need to be removed separately. Check the paths and commands in the official instructions before deleting files, especially if you want to keep downloaded models.