New Tool Radar

Local AI

Install Ollama on Linux with the Install Script

Install Ollama on Linux with the official install script, confirm the service is running, and start a first model.

Schematic with three steps: Run the install script; Confirm the service is running; Run a first model.

On Linux the official install script downloads Ollama, installs the binary, and sets up a systemd service that starts the server at boot. One curl command covers the whole install.

What you need

  • A Linux machine (Ubuntu or Debian-style system) with curl
  • sudo access to install the service
  • About 10 GB of free disk space for a first model

Step 1: Run the install script

Run curl -fsSL https://ollama.com/install.sh | sh in a terminal. The script installs the ollama binary and creates the ollama systemd service. It is the same command the official download page gives for Linux and macOS.

Step 2: Confirm the service is running

Run systemctl status ollama. The service should show active (running). If it is not, start it with sudo systemctl start ollama and enable it at boot with sudo systemctl enable ollama.

Step 3: Run a first model

Run ollama pull llama3.2 and then ollama run llama3.2. The server listens on http://localhost:11434 by default, and the model answers in the terminal.

Worked example: install on Ubuntu

The table below is a synthetic example. The commands are the documented ones; the service states are the expected outcomes, not a live measurement.

Check Command Expected result
Install curl -fsSL https://ollama.com/install.sh | sh Install completes, no error
Service systemctl status ollama active (running)
First run ollama run llama3.2 Model answers a prompt

Expected result (UNTESTED). the install script finishes, systemctl status ollama shows active (running), and ollama run answers a test question. This check was not run live; the commands come from the cited Linux docs.

Limits

  • The script needs sudo; without it the service cannot be installed.
  • The first model download needs internet access.
  • On systems without systemd, the service step does not apply; run ollama serve manually.
  • GPU use needs a supported NVIDIA or AMD driver installed on the host.

Sources

See all