Cyber Deals - Get up to 65% off on CKA, CKAD, CKS, KCNA, KCSA exams and courses!

ollama - Installation and Usage

Set your home dir first before installation (for setting the correct path)

export OLLAMA_HOME=/home/iamgini/.ollama
export OLLAMA_MODELS=/home/iamgini/.ollama/models
mkdir -p $OLLAMA_MODELS

Add those exports to ~/.bashrc permanently, then run the install script. The service and models will respect those paths.

Install ollama

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