English | 简体中文
This is a Bash script for installing Ollama in the Termux environment.Ollama is a command-line tool that allows you to run large language models such as Llama 2 and Code Llama locally.This script helps users easily set up and run Ollama in Termux by automating the installation process.
- Install Termux Github Releases F-Droid
- Install Ollama App (install as needed) Github Releases
- Good network
- Open Termux
- Run the following command to execute the installation script.
- Github:
curl -s -o ~/i https://raw.githubusercontent.com/CMSZ001/Ollama_for_Termux/refs/heads/main/install.sh && bash ~/i
- Gitee:
curl -s -o ~/i https://gitee.com/CMSZ001/Ollama_for_Termux/raw/main/install.sh && bash ~/i
- Follow the prompts in the script to decide whether to use a mirror and whether to proceed with the installation.
- After the installation is complete,you can start Ollama by running the
ollama
command.
This script is written byCMSZ001
and is open-sourced under theMIT License.For copyright information regarding Ollama,please refer to theofficial Ollama repository.