linux离线安装ollama

从github下载ollama的release版本,x86服务器下载amd64的版本

https://github.com/ollama/ollama/releases

image.png

下载install.sh

https://github.com/ollama/ollama/blob/main/scripts/install.sh
将install.sh中的以下内容修改为如图所示的内容,绕过下载

status "Downloading Linux ${ARCH} bundle"
curl --fail --show-error --location --progress-bar \
    "https://ollama.com/download/ollama-linux-${ARCH}.tgz${VER_PARAM}" | \
    $SUDO tar -xzf - -C "$OLLAMA_INSTALL_DIR"
status "Downloading Linux ${ARCH} bundle"
#curl --fail --show-error --location --progress-bar \
#    "https://ollama.com/download/ollama-linux-${ARCH}.tgz${VER_PARAM}" | \
$SUDO tar -xzf /data/ryy/ollama-linux-amd64.tgz -C "$OLLAMA_INSTALL_DIR"
执行sh install.sh
image.png
执行ollama --version,显示以下代表安装成功

ollama version is 0.5.7

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容