[PR #8279] Improved offline installation experience (install.sh) #59376

Open
opened 2026-04-29 14:18:30 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/8279
Author: @PatZer0
Created: 1/1/2025
Status: 🔄 Open

Base: mainHead: main


📝 Commits (1)

  • 518be7e Improved installation experience, the script can now install Ollama properly without internet connection (or under restricted network conditions) by manually downloading the required files into the current directory.

📊 Changes

1 file changed (+28 additions, -12 deletions)

View changed files

📝 scripts/install.sh (+28 -12)

📄 Description

As the current install.sh script requires good internet connection, this improvement enables user to pre-download required files in other ways to install offline with the script.

Add 2 new functions:
note: Display a note text in yellow.
download_and_extract: Handle all the download operations. Shows the filename and URL when the download starts, which allows user to download the required files manually to install Ollama offline or under restricted network conditions.

Tested on Jetson Orin NX (JetPack 6.1 / Ubuntu 22.04)

Online Installation:

>>> Installing ollama to /usr/local
>>> Downloading Linux arm64 bundle
>>> Downloading ollama-linux-arm64.tgz from https://ollama.com/download/ollama-linux-arm64.tgz
NOTE: If you have trouble downloading, use Ctrl-C to terminate the script and manually download the file to the current directory, then re-run the script.
O=-                                                                                                            #              #              #            #

Offline Installation (with file downloaded in the same dir):

>>> Installing ollama to /usr/local
>>> Downloading Linux arm64 bundle
>>> Download skipped, using local existing file: ollama-linux-arm64.tgz
>>> Downloading JetPack 6 components
>>> Download skipped, using local existing file: ollama-linux-arm64-jetpack6.tgz
>>> Adding ollama user to render group...
>>> Adding ollama user to video group...
>>> Adding current user to ollama group...
>>> Creating ollama systemd service...
>>> Enabling and starting ollama service...
>>> NVIDIA JetPack ready.
>>> The Ollama API is now available at 127.0.0.1:11434.
>>> Install complete. Run "ollama" from the command line.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/8279 **Author:** [@PatZer0](https://github.com/PatZer0) **Created:** 1/1/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`518be7e`](https://github.com/ollama/ollama/commit/518be7e07dda2ad3152d2deb7517432b1b2408ce) Improved installation experience, the script can now install Ollama properly without internet connection (or under restricted network conditions) by manually downloading the required files into the current directory. ### 📊 Changes **1 file changed** (+28 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `scripts/install.sh` (+28 -12) </details> ### 📄 Description As the current install.sh script requires good internet connection, this improvement enables user to pre-download required files in other ways to install offline with the script. Add 2 new functions: `note`: Display a note text in yellow. `download_and_extract`: Handle all the download operations. Shows the filename and URL when the download starts, which allows user to download the required files manually to install Ollama offline or under restricted network conditions. Tested on Jetson Orin NX (JetPack 6.1 / Ubuntu 22.04) **Online Installation:** ``` >>> Installing ollama to /usr/local >>> Downloading Linux arm64 bundle >>> Downloading ollama-linux-arm64.tgz from https://ollama.com/download/ollama-linux-arm64.tgz NOTE: If you have trouble downloading, use Ctrl-C to terminate the script and manually download the file to the current directory, then re-run the script. O=- # # # # ``` **Offline Installation (with file downloaded in the same dir):** ``` >>> Installing ollama to /usr/local >>> Downloading Linux arm64 bundle >>> Download skipped, using local existing file: ollama-linux-arm64.tgz >>> Downloading JetPack 6 components >>> Download skipped, using local existing file: ollama-linux-arm64-jetpack6.tgz >>> Adding ollama user to render group... >>> Adding ollama user to video group... >>> Adding current user to ollama group... >>> Creating ollama systemd service... >>> Enabling and starting ollama service... >>> NVIDIA JetPack ready. >>> The Ollama API is now available at 127.0.0.1:11434. >>> Install complete. Run "ollama" from the command line. ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-29 14:18:30 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#59376