[GH-ISSUE #12503] Marjor security issue with install procedure and lot of non-sense unsafe practices with Linux install #34060

Open
opened 2026-04-22 17:17:31 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @leagris on GitHub (Oct 4, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/12503

What is the issue?

Linux install script and instructions are absolutely terrible by the total lack of consideration for security, and multiple bad practices in the install instructions and choice of system folders interfering with distribution paths.

Relevant log output


OS

Linux

GPU

Nvidia

CPU

AMD

Ollama version

irrelevant

Originally created by @leagris on GitHub (Oct 4, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/12503 ### What is the issue? Linux install script and instructions are absolutely terrible by the total lack of consideration for security, and multiple bad practices in the install instructions and choice of system folders interfering with distribution paths. ### Relevant log output ```shell ``` ### OS Linux ### GPU Nvidia ### CPU AMD ### Ollama version irrelevant
GiteaMirror added the bug label 2026-04-22 17:17:31 -05:00
Author
Owner

@leagris commented on GitHub (Oct 4, 2025):

shellcheck review of install.sh:


In install.sh line 15:
cleanup() { rm -rf $TEMP_DIR; }
                   ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
cleanup() { rm -rf "$TEMP_DIR"; }


In install.sh line 18:
available() { command -v $1 >/dev/null; }
                         ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
available() { command -v "$1" >/dev/null; }


In install.sh line 20:
    local MISSING=''
    ^-----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In install.sh line 21:
    for TOOL in $*; do
                ^-- SC2048 (warning): Use "$@" (with quotes) to prevent whitespace problems.


In install.sh line 22:
        if ! available $TOOL; then
                       ^---^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
        if ! available "$TOOL"; then


In install.sh line 27:
    echo $MISSING
         ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
    echo "$MISSING"


In install.sh line 70:
    echo $PATH | grep -q $BINDIR && break || continue
         ^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                 ^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.

Did you mean: 
    echo "$PATH" | grep -q $BINDIR && break || continue


In install.sh line 131:
    $SUDO usermod -a -G ollama $(whoami)
                               ^-------^ SC2046 (warning): Quote this to prevent word splitting.


In install.sh line 176:
    if available nvidia-smi && [ -n "$(nvidia-smi | grep -o "CUDA Version: [0-9]*\.[0-9]*")" ]; then
                                 ^-- SC2143 (style): Use grep -q instead of comparing output with [ -n .. ].


In install.sh line 245:
            $SUDO $PACKAGE_MANAGER -y install yum-utils
                  ^--------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
            $SUDO "$PACKAGE_MANAGER" -y install yum-utils


In install.sh line 247:
                $SUDO $PACKAGE_MANAGER-config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/$1$2/$(uname -m | sed -e 's/aarch64/sbsa/')/cuda-$1$2.repo
                      ^--------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                                                                                                          ^-- SC2086 (info): Double quote to prevent globbing and word splitting.
                                                                                                                            ^-- SC2086 (info): Double quote to prevent globbing and word splitting.
                                                                                                                               ^-- SC2046 (warning): Quote this to prevent word splitting.
                                                                                                                                                                           ^-- SC2086 (info): Double quote to prevent globbing and word splitting.
                                                                                                                                                                             ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
                $SUDO "$PACKAGE_MANAGER"-config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/"$1""$2"/$(uname -m | sed -e 's/aarch64/sbsa/')/cuda-"$1""$2".repo


In install.sh line 249:
                error $CUDA_REPO_ERR_MSG
                      ^----------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
                error "$CUDA_REPO_ERR_MSG"


In install.sh line 254:
                $SUDO $PACKAGE_MANAGER config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/$1$2/$(uname -m | sed -e 's/aarch64/sbsa/')/cuda-$1$2.repo
                      ^--------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                                                                                                          ^-- SC2086 (info): Double quote to prevent globbing and word splitting.
                                                                                                                            ^-- SC2086 (info): Double quote to prevent globbing and word splitting.
                                                                                                                               ^-- SC2046 (warning): Quote this to prevent word splitting.
                                                                                                                                                                           ^-- SC2086 (info): Double quote to prevent globbing and word splitting.
                                                                                                                                                                             ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
                $SUDO "$PACKAGE_MANAGER" config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/"$1""$2"/$(uname -m | sed -e 's/aarch64/sbsa/')/cuda-"$1""$2".repo


In install.sh line 256:
                error $CUDA_REPO_ERR_MSG
                      ^----------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
                error "$CUDA_REPO_ERR_MSG"


In install.sh line 265:
            $SUDO $PACKAGE_MANAGER -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-$2.noarch.rpm || true
                  ^--------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                                                                                        ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
            $SUDO "$PACKAGE_MANAGER" -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-"$2".noarch.rpm || true


In install.sh line 272:
        $SUDO $PACKAGE_MANAGER -y install nvidia-driver-latest-dkms
              ^--------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
        $SUDO "$PACKAGE_MANAGER" -y install nvidia-driver-latest-dkms


In install.sh line 275:
    $SUDO $PACKAGE_MANAGER -y install cuda-drivers
          ^--------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
    $SUDO "$PACKAGE_MANAGER" -y install cuda-drivers


In install.sh line 283:
        curl -fsSL -o $TEMP_DIR/cuda-keyring.deb https://developer.download.nvidia.com/compute/cuda/repos/$1$2/$(uname -m | sed -e 's/aarch64/sbsa/')/cuda-keyring_1.1-1_all.deb
                      ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                                                                                          ^-- SC2086 (info): Double quote to prevent globbing and word splitting.
                                                                                                            ^-- SC2086 (info): Double quote to prevent globbing and word splitting.
                                                                                                               ^-- SC2046 (warning): Quote this to prevent word splitting.

Did you mean: 
        curl -fsSL -o "$TEMP_DIR"/cuda-keyring.deb https://developer.download.nvidia.com/compute/cuda/repos/"$1""$2"/$(uname -m | sed -e 's/aarch64/sbsa/')/cuda-keyring_1.1-1_all.deb


In install.sh line 285:
        error $CUDA_REPO_ERR_MSG
              ^----------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
        error "$CUDA_REPO_ERR_MSG"


In install.sh line 299:
    $SUDO dpkg -i $TEMP_DIR/cuda-keyring.deb
                  ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
    $SUDO dpkg -i "$TEMP_DIR"/cuda-keyring.deb


In install.sh line 310:
. /etc/os-release
  ^-------------^ SC1091 (info): Not following: /etc/os-release was not specified as input (see shellcheck -x).


In install.sh line 326:
if ! check_gpu nvidia-smi || [ -z "$(nvidia-smi | grep -o "CUDA Version: [0-9]*\.[0-9]*")" ]; then
                               ^-- SC2143 (style): Use ! grep -q instead of comparing output with [ -z .. ].


In install.sh line 328:
        centos|rhel) install_cuda_driver_yum 'rhel' $(echo $OS_VERSION | cut -d '.' -f 1) ;;
                                                    ^-- SC2046 (warning): Quote this to prevent word splitting.
                                                           ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
        centos|rhel) install_cuda_driver_yum 'rhel' $(echo "$OS_VERSION" | cut -d '.' -f 1) ;;


In install.sh line 329:
        rocky) install_cuda_driver_yum 'rhel' $(echo $OS_VERSION | cut -c1) ;;
                                              ^---------------------------^ SC2046 (warning): Quote this to prevent word splitting.
                                                     ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
        rocky) install_cuda_driver_yum 'rhel' $(echo "$OS_VERSION" | cut -c1) ;;


In install.sh line 330:
        fedora) [ $OS_VERSION -lt '39' ] && install_cuda_driver_yum $OS_NAME $OS_VERSION || install_cuda_driver_yum $OS_NAME '39';;
                  ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                         ^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.
                                                                    ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                                                             ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                                                                                                    ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
        fedora) [ "$OS_VERSION" -lt '39' ] && install_cuda_driver_yum "$OS_NAME" "$OS_VERSION" || install_cuda_driver_yum "$OS_NAME" '39';;


In install.sh line 332:
        debian) install_cuda_driver_apt $OS_NAME $OS_VERSION ;;
                                        ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                                 ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
        debian) install_cuda_driver_apt "$OS_NAME" "$OS_VERSION" ;;


In install.sh line 333:
        ubuntu) install_cuda_driver_apt $OS_NAME $(echo $OS_VERSION | sed 's/\.//') ;;
                                        ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                                 ^-- SC2046 (warning): Quote this to prevent word splitting.
                                                        ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
        ubuntu) install_cuda_driver_apt "$OS_NAME" $(echo "$OS_VERSION" | sed 's/\.//') ;;


In install.sh line 342:
        centos|rhel|amzn) $SUDO $PACKAGE_MANAGER -y install kernel-devel-$KERNEL_RELEASE kernel-headers-$KERNEL_RELEASE ;;
                                                                         ^-------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                                                                                        ^-------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
        centos|rhel|amzn) $SUDO $PACKAGE_MANAGER -y install kernel-devel-"$KERNEL_RELEASE" kernel-headers-"$KERNEL_RELEASE" ;;


In install.sh line 343:
        fedora) $SUDO $PACKAGE_MANAGER -y install kernel-devel-$KERNEL_RELEASE ;;
                                                               ^-------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
        fedora) $SUDO $PACKAGE_MANAGER -y install kernel-devel-"$KERNEL_RELEASE" ;;


In install.sh line 344:
        debian|ubuntu) $SUDO apt-get -y install linux-headers-$KERNEL_RELEASE ;;
                                                              ^-------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
        debian|ubuntu) $SUDO apt-get -y install linux-headers-"$KERNEL_RELEASE" ;;


In install.sh line 350:
        $SUDO dkms install $NVIDIA_CUDA_VERSION
                           ^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
        $SUDO dkms install "$NVIDIA_CUDA_VERSION"

For more information:
  https://www.shellcheck.net/wiki/SC2046 -- Quote this to prevent word splitt...
  https://www.shellcheck.net/wiki/SC2048 -- Use "$@" (with quotes) to prevent...
  https://www.shellcheck.net/wiki/SC3043 -- In POSIX sh, 'local' is undefined.
<!-- gh-comment-id:3368572407 --> @leagris commented on GitHub (Oct 4, 2025): shellcheck review of `install.sh`: ```sh In install.sh line 15: cleanup() { rm -rf $TEMP_DIR; } ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: cleanup() { rm -rf "$TEMP_DIR"; } In install.sh line 18: available() { command -v $1 >/dev/null; } ^-- SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: available() { command -v "$1" >/dev/null; } In install.sh line 20: local MISSING='' ^-----------^ SC3043 (warning): In POSIX sh, 'local' is undefined. In install.sh line 21: for TOOL in $*; do ^-- SC2048 (warning): Use "$@" (with quotes) to prevent whitespace problems. In install.sh line 22: if ! available $TOOL; then ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if ! available "$TOOL"; then In install.sh line 27: echo $MISSING ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: echo "$MISSING" In install.sh line 70: echo $PATH | grep -q $BINDIR && break || continue ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true. Did you mean: echo "$PATH" | grep -q $BINDIR && break || continue In install.sh line 131: $SUDO usermod -a -G ollama $(whoami) ^-------^ SC2046 (warning): Quote this to prevent word splitting. In install.sh line 176: if available nvidia-smi && [ -n "$(nvidia-smi | grep -o "CUDA Version: [0-9]*\.[0-9]*")" ]; then ^-- SC2143 (style): Use grep -q instead of comparing output with [ -n .. ]. In install.sh line 245: $SUDO $PACKAGE_MANAGER -y install yum-utils ^--------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $SUDO "$PACKAGE_MANAGER" -y install yum-utils In install.sh line 247: $SUDO $PACKAGE_MANAGER-config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/$1$2/$(uname -m | sed -e 's/aarch64/sbsa/')/cuda-$1$2.repo ^--------------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2046 (warning): Quote this to prevent word splitting. ^-- SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $SUDO "$PACKAGE_MANAGER"-config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/"$1""$2"/$(uname -m | sed -e 's/aarch64/sbsa/')/cuda-"$1""$2".repo In install.sh line 249: error $CUDA_REPO_ERR_MSG ^----------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: error "$CUDA_REPO_ERR_MSG" In install.sh line 254: $SUDO $PACKAGE_MANAGER config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/$1$2/$(uname -m | sed -e 's/aarch64/sbsa/')/cuda-$1$2.repo ^--------------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2046 (warning): Quote this to prevent word splitting. ^-- SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $SUDO "$PACKAGE_MANAGER" config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/"$1""$2"/$(uname -m | sed -e 's/aarch64/sbsa/')/cuda-"$1""$2".repo In install.sh line 256: error $CUDA_REPO_ERR_MSG ^----------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: error "$CUDA_REPO_ERR_MSG" In install.sh line 265: $SUDO $PACKAGE_MANAGER -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-$2.noarch.rpm || true ^--------------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $SUDO "$PACKAGE_MANAGER" -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-"$2".noarch.rpm || true In install.sh line 272: $SUDO $PACKAGE_MANAGER -y install nvidia-driver-latest-dkms ^--------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $SUDO "$PACKAGE_MANAGER" -y install nvidia-driver-latest-dkms In install.sh line 275: $SUDO $PACKAGE_MANAGER -y install cuda-drivers ^--------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $SUDO "$PACKAGE_MANAGER" -y install cuda-drivers In install.sh line 283: curl -fsSL -o $TEMP_DIR/cuda-keyring.deb https://developer.download.nvidia.com/compute/cuda/repos/$1$2/$(uname -m | sed -e 's/aarch64/sbsa/')/cuda-keyring_1.1-1_all.deb ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2046 (warning): Quote this to prevent word splitting. Did you mean: curl -fsSL -o "$TEMP_DIR"/cuda-keyring.deb https://developer.download.nvidia.com/compute/cuda/repos/"$1""$2"/$(uname -m | sed -e 's/aarch64/sbsa/')/cuda-keyring_1.1-1_all.deb In install.sh line 285: error $CUDA_REPO_ERR_MSG ^----------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: error "$CUDA_REPO_ERR_MSG" In install.sh line 299: $SUDO dpkg -i $TEMP_DIR/cuda-keyring.deb ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $SUDO dpkg -i "$TEMP_DIR"/cuda-keyring.deb In install.sh line 310: . /etc/os-release ^-------------^ SC1091 (info): Not following: /etc/os-release was not specified as input (see shellcheck -x). In install.sh line 326: if ! check_gpu nvidia-smi || [ -z "$(nvidia-smi | grep -o "CUDA Version: [0-9]*\.[0-9]*")" ]; then ^-- SC2143 (style): Use ! grep -q instead of comparing output with [ -z .. ]. In install.sh line 328: centos|rhel) install_cuda_driver_yum 'rhel' $(echo $OS_VERSION | cut -d '.' -f 1) ;; ^-- SC2046 (warning): Quote this to prevent word splitting. ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: centos|rhel) install_cuda_driver_yum 'rhel' $(echo "$OS_VERSION" | cut -d '.' -f 1) ;; In install.sh line 329: rocky) install_cuda_driver_yum 'rhel' $(echo $OS_VERSION | cut -c1) ;; ^---------------------------^ SC2046 (warning): Quote this to prevent word splitting. ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: rocky) install_cuda_driver_yum 'rhel' $(echo "$OS_VERSION" | cut -c1) ;; In install.sh line 330: fedora) [ $OS_VERSION -lt '39' ] && install_cuda_driver_yum $OS_NAME $OS_VERSION || install_cuda_driver_yum $OS_NAME '39';; ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true. ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: fedora) [ "$OS_VERSION" -lt '39' ] && install_cuda_driver_yum "$OS_NAME" "$OS_VERSION" || install_cuda_driver_yum "$OS_NAME" '39';; In install.sh line 332: debian) install_cuda_driver_apt $OS_NAME $OS_VERSION ;; ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: debian) install_cuda_driver_apt "$OS_NAME" "$OS_VERSION" ;; In install.sh line 333: ubuntu) install_cuda_driver_apt $OS_NAME $(echo $OS_VERSION | sed 's/\.//') ;; ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2046 (warning): Quote this to prevent word splitting. ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ubuntu) install_cuda_driver_apt "$OS_NAME" $(echo "$OS_VERSION" | sed 's/\.//') ;; In install.sh line 342: centos|rhel|amzn) $SUDO $PACKAGE_MANAGER -y install kernel-devel-$KERNEL_RELEASE kernel-headers-$KERNEL_RELEASE ;; ^-------------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: centos|rhel|amzn) $SUDO $PACKAGE_MANAGER -y install kernel-devel-"$KERNEL_RELEASE" kernel-headers-"$KERNEL_RELEASE" ;; In install.sh line 343: fedora) $SUDO $PACKAGE_MANAGER -y install kernel-devel-$KERNEL_RELEASE ;; ^-------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: fedora) $SUDO $PACKAGE_MANAGER -y install kernel-devel-"$KERNEL_RELEASE" ;; In install.sh line 344: debian|ubuntu) $SUDO apt-get -y install linux-headers-$KERNEL_RELEASE ;; ^-------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: debian|ubuntu) $SUDO apt-get -y install linux-headers-"$KERNEL_RELEASE" ;; In install.sh line 350: $SUDO dkms install $NVIDIA_CUDA_VERSION ^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $SUDO dkms install "$NVIDIA_CUDA_VERSION" For more information: https://www.shellcheck.net/wiki/SC2046 -- Quote this to prevent word splitt... https://www.shellcheck.net/wiki/SC2048 -- Use "$@" (with quotes) to prevent... https://www.shellcheck.net/wiki/SC3043 -- In POSIX sh, 'local' is undefined. ```
Author
Owner

@leagris commented on GitHub (Oct 4, 2025):

Very questionnable install instructions:

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

running a script this way, especially a script that asks for root privileges is call for disaster. There are known exploits with running scripts this way example here: https://github.com/sethgrid/exploit

<!-- gh-comment-id:3368573570 --> @leagris commented on GitHub (Oct 4, 2025): Very questionnable install instructions: > `curl -fsSL https://ollama.com/install.sh | sh` running a script this way, especially a script that asks for root privileges is call for disaster. There are known exploits with running scripts this way example here: https://github.com/sethgrid/exploit
Author
Owner

@leagris commented on GitHub (Oct 4, 2025):

Problem with the install directory:

curl -LO https://ollama.com/download/ollama-linux-amd64.tgz
sudo rm -rf /usr/lib/ollama
sudo tar -C /usr -xzf ollama-linux-amd64.tgz

/usr/lib is only for distribution-packaged uerland libraries. Libraries installed outside of a distribution package shall be installed inside /usr/local/lib/

<!-- gh-comment-id:3368575800 --> @leagris commented on GitHub (Oct 4, 2025): Problem with the install directory: > ```sh > curl -LO https://ollama.com/download/ollama-linux-amd64.tgz > sudo rm -rf /usr/lib/ollama > sudo tar -C /usr -xzf ollama-linux-amd64.tgz > ``` `/usr/lib` is only for distribution-packaged uerland libraries. Libraries **installed outside of a distribution package** **shall be installed inside `/usr/local/lib/`**
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#34060