October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk3 min

Install Ollama on Ubuntu: Script, Tarball, and Docker Steps

Ollama’s Linux installer is the straightforward Ubuntu route, but fresh systems may need zstd first. Here are the script, tarball, and Docker steps, with GPU and Ubuntu 26.04 qualifications.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

On Ubuntu, Ollama’s documented default is its Linux install script: curl -fsSL https://ollama.com/install.sh | sh. Before running it on a fresh system, check that zstd is installed. You can also install from an archive or run Ollama in Docker; the Docker GPU setup differs for NVIDIA and AMD. Ollama’s Linux guide does not state release-specific support for Ubuntu 26.04, so treat compatibility on that release as unconfirmed.

Choose an installation method

Method Best suited to What to know
Install script Most Ubuntu users who want the documented Linux setup Installs Ollama on the host and configures a systemd service when possible. The current script may require zstd.
Manual tarball Users who want to extract the Linux archive themselves Extracts into /usr; start the service with ollama serve. The archive uses zstd decompression.
Docker Users who prefer a container-managed service or need the documented container GPU setup Uses a persistent volume for Ollama data and publishes port 11434. GPU use requires vendor-specific host configuration.

Ollama documents the script, archive, and Docker routes in its Linux installation guide and Docker guide.

As an Amazon Associate I earn from qualifying purchases.

Prepare Ubuntu, including zstd

The installer currently prefers a .tar.zst archive when available. If a fresh system lacks the zstd utility, the installer can stop and ask you to install it; its source gives this Debian/Ubuntu command:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
sudo apt-get install zstd

Run that first if zstd is not present. The installer source says older versions can fall back to a .tgz archive, but do not rely on that fallback for a current installation. The archive method also needs zstd decompression. See the Ollama installer script for its current behavior.

#1 Best Overall
Panasonic Toughbook CF-31 MK5 Rugged Laptop, 13.1in i5, 8GB 256GB (Renewed)
  • [ULTRA-RUGGED DESIGN] MIL-STD-810G and IP65 certified. Built to survive 6-foot drops, heavy rain, and extreme vibrations. Features a magnesium alloy chassis with an integrated carry handle for maximum portability
  • [4G LTE - WORK ANYWHERE] Integrated 4G LTE Multi-Carrier Mobile Broadband. Stay connected to the internet in remote areas or on the road without relying on Wi-Fi or phone hotspots. True mobile freedom for field professionals
  • [1200-NIT SUNLIGHT READABLE] 13.1" XGA Touchscreen with CircuLumin technology. At 1200 nits, it is nearly 4x brighter than a standard laptop, ensuring perfect visibility under direct, intense sunlight
  • [LINUX UBUNTU PRE-INSTALLED] Fast, secure, and bloatware-free. Optimized for developers, network engineers, and diagnostic software that thrives in a stable, open-source environment
  • [LEGACY SERIAL PORT] Features a native RS-232 Serial Port, HDMI, and USB 3.0. Essential for connecting directly to industrial machinery, CNCs, and automotive diagnostic tools without unreliable adapter

Install Ollama with the official script

  1. Open a terminal and run the documented installer command:

    curl -fsSL https://ollama.com/install.sh | sh
  2. When installation finishes, check that the CLI is available:

    ollama -v
  3. If the service is not already running, start it in a terminal with:

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
    Rank #2
    Lenovo IdeaPad Slim 3 Linux Laptop, 15.6" FHD Touchscreen Laptop, 8-Core AMD Ryzen 7 5825U, 16GB RAM, 512GB SSD, Keypad, SD Card Reader, Stylus Pen + External Portable SSD + USB Hub, Linux Ubuntu OS
    • Powerful Linux Laptop: This IdeaPad Slim 3 Laptop comes pre-installed with Ubuntu Linux, offering fast performance, robust security, and a clean, user-friendly experience. Enjoy full customization, seamless hardware compatibility, and access to thousands of open-source apps. Whether you're working, creating, or coding, it's built to keep up with everything you do.
    • A Multitasking Master: The latest AMD Ryzen 7 5825U processor (up to 4.5 GHz) delivers powerful performance with 8 cores and 16 threads for smooth multitasking. Integrated AMD Radeon Graphics provide crisp visuals for streaming, browsing, photo editing, and casual gaming. With smart machine intelligence, it adapts to your needs for a fast, responsive experience.
    • 15.6" Full HD Display: The IdeaPad Slim 3 boasts an 88% screen-to-body ratio for a floating, edge-to-edge visual experience. TÜV Low Blue Light certification reduces eye strain, making it perfect for long work or study sessions.
    • Military-Grade Durability: The smart IdeaPad Slim 3 combines portability and durability, letting you work, study, and play on the go. With a profile 10% slimmer than the previous generation, it's lightweight yet military-grade rugged, ready for anything, anywhere.
    • Versatile Connectivity: Enjoy the security of a built-in webcam with a privacy shutter. Connect effortlessly with multiple ports: 2x USB A, 1x USB C, 1x HDMI, 1x SD Card Reader, 1x Headphone/Microphone combo. Bundle comes with Stylus Pen, 256GB Portable SSD and 5-in-1 Docking Station.
    ollama serve

The Linux installer detects the system architecture and supports x86_64 and ARM64. Ollama’s Linux documentation says the installer configures a systemd service when possible. For a specific release, set OLLAMA_VERSION for the installer as described in the Linux guide; avoid copying an old version number without checking the current release information.

Install from a Linux archive

For the documented amd64 archive, make sure zstd extraction is available, then run:

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

Start the service in one terminal:

ollama serve

Open a second terminal and verify the CLI:

ollama -v

The same Linux guide lists separate ARM64 and AMD ROCm archives. Choose the archive that matches your system and GPU software needs rather than using the amd64 example indiscriminately.

Rank #3
64GB - 16-in-1, Bootable USB Drive 3.2 for Linux & Windows 11, Zorin | Mint | Kali | Ubuntu | Tails | Debian, Supported UEFI and Legacy
  • ✅For beginners, refer image-7, its a video boot instruction, and image-6 is "boot menu Hot Key list"
  • ✅16-IN-1, 64GB Bootable USB Drive 3.2 , Can Run Linux On USB Drive Without Install, All Latest versions.
  • ✅Including Windows 11 64Bit & Linux Mint 22.3 (Cinnamon)、Kali 2026.02、Ubuntu 26.04、Zorin Pro 18、Tails 7.8.1、Debian 13.5.0、Garuda 2026.03、Fedora Workstation 44、Manjaro 25.06、Pop!_OS 22.04、Solus 2026.04、Archcraft 26.05、Neon 2026.06、Fossapup 9.5、Sparkylinux 8.3, All ISO has been Tested
  • ✅Supported UEFI and Legacy, Compatibility any PC/Laptop, Any boot issue only needs to disable "Secure Boot"
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Run Ollama in Docker

CPU-only Docker

The official CPU-only example retains Ollama data in a named volume and exposes the service on port 11434:

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
docker run -d -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama

The named volume keeps the Ollama data outside the container’s writable layer, so it persists when the container is replaced.

NVIDIA GPU

For NVIDIA, Ollama’s Docker guide requires the NVIDIA Container Toolkit and Docker runtime configuration on the host, then uses --gpus=all when starting the container. Follow the current Docker instructions for the complete command and host setup; the CPU-only example does not enable GPU access.

Rank #4
Lenovo Business Laptop - Linux Mint (Cinnamon) - Intel i5-1335U, 16GB RAM, 256GB SSD, 15.6" FHD 1920x1080 Display, Full Keyboard, Fast Charging
  • Intel Core i5-1335U Processor (12M Cache, 12 Threads, up to 4.6 GHz) - 256GB Solid State Drive - 16GB DDR4 SDRAM
  • 15.6" FHD (1920x1080) Non-Touch Anti-Glare Display - Intel UHD 620 Integrated Graphics - Stereo Speakers
  • 720p HD Webcam with Privacy Shutter. Integrated Microphone - Intel Dual Band Wireless-AC (2x2) 8265, Bluetooth Version 4.2
  • I/O Ports: 2x USB 3.0, 1x USB 3.1 Type-C 3.1, Headphone/Mic Combo Port, 4-in-1 Card Reader, HDMI, Kensington Mini-Lock Slot
  • Linux Mint (Cinnamon) 64-Bit - Keyboard with Full NumberPad - Fast Charging

AMD GPU

The documented AMD route uses the ollama/ollama:rocm image tag and passes the /dev/kfd and /dev/dri devices into the container. Confirm the host’s AMD GPU and ROCm setup against the Docker guide before using this route.

What to expect on Ubuntu 26.04 and 24.04

The official Linux installation guide does not identify Ubuntu release numbers or publish a release-specific compatibility statement for either 24.04 or 26.04. A community issue reports an installation failure on a clean Ubuntu 26.04 system without the zstd CLI, but that is a reported case, not an official support or compatibility declaration: community issue. Installing zstd addresses that particular missing-utility condition; it does not establish broader 26.04 support.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For either Ubuntu release, use the documented Linux path and check the current installer and Docker instructions before proceeding, since those rolling project materials can change.

Update an existing script installation

Ollama documents rerunning the installer as an update method. Use the same command:

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

If you need a particular release, use the OLLAMA_VERSION mechanism described in the Linux guide rather than assuming a version number is current.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.