One-Liner series: Ollama
Install on Ubuntu
curl -fsSL https://ollama.com/install.sh | sudo sh
Install a specific version
curl -fsSL https://ollama.com/install.sh | OLLAMA_VERSION=0.2.5 sudo sh
Alternative source (possibly not up-to-date with offical release)
pip install modelscope
modelscope download --model=modelscope/ollama-linux --local_dir ./ollama-linux
cd ollama-linux
chmod +x ./ollama-modelscope-install.sh
./ollama-modelscope-install.sh`
Update on Ubuntu
Run the same command as above
curl -fsSL https://ollama.com/install.sh | sudo sh
Uninstall on Ubuntu
sudo systemctl stop ollama
sudo systemctl disable ollama
sudo rm /etc/systemd/system/ollama.service
sudo rm $(which ollama)
sudo rm -r /usr/share/ollama
sudo userdel ollama
sudo groupdel ollama