[PR #14973] feat: Add TencentOS Server to supported distributions in install script #61644

Open
opened 2026-04-29 16:42:27 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14973
Author: @guoningzhang20
Created: 3/20/2026
Status: 🔄 Open

Base: mainHead: fix/add-tencentos-support


📝 Commits (1)

  • 06a7f39 feat: Add TencentOS Server to supported distributions in install script

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 scripts/install.sh (+2 -2)

📄 Description

Summary

The Ollama install script (scripts/install.sh) does not recognize TencentOS Server (ID=tencentos) in its CUDA driver installation logic. When a TencentOS user has an NVIDIA GPU, the script silently exits without installing CUDA drivers, leaving the GPU unusable for inference.

Changes

Added tencentos to two case statements in scripts/install.sh:

  1. CUDA driver installation (line ~405): tencentos is mapped to the rhel CUDA repository, same as centos|rhel, since TencentOS is fully RHEL-compatible.
  2. Kernel headers installation (line ~419): tencentos is added alongside centos|rhel|amzn for installing kernel-devel and kernel-headers.

TencentOS Server Info

  • OS Release: ID=tencentos, ID_LIKE="tencentos", PLATFORM_ID="platform:el9"
  • Package Manager: dnf (yum compatible)
  • Ecosystem: Fully RHEL/EL9 compatible
  • NVIDIA CUDA: Uses the same RHEL CUDA repository
  • Note: /etc/redhat-release is NOT present by default
  • Official site: https://cloud.tencent.com/product/ts

Testing

Verified on TencentOS Server V4.4 (x86_64) that:

  • The install script correctly identifies TencentOS as a RHEL-family distribution
  • CUDA driver repository is correctly configured using the RHEL path
  • Kernel headers are installed with the correct version-specific packages

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/14973 **Author:** [@guoningzhang20](https://github.com/guoningzhang20) **Created:** 3/20/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/add-tencentos-support` --- ### 📝 Commits (1) - [`06a7f39`](https://github.com/ollama/ollama/commit/06a7f39f703e1c903ecd5d39c08232467cdc51fa) feat: Add TencentOS Server to supported distributions in install script ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `scripts/install.sh` (+2 -2) </details> ### 📄 Description ## Summary The Ollama install script (`scripts/install.sh`) does not recognize TencentOS Server (`ID=tencentos`) in its CUDA driver installation logic. When a TencentOS user has an NVIDIA GPU, the script silently exits without installing CUDA drivers, leaving the GPU unusable for inference. ## Changes Added `tencentos` to two `case` statements in `scripts/install.sh`: 1. **CUDA driver installation** (line ~405): `tencentos` is mapped to the `rhel` CUDA repository, same as `centos|rhel`, since TencentOS is fully RHEL-compatible. 2. **Kernel headers installation** (line ~419): `tencentos` is added alongside `centos|rhel|amzn` for installing `kernel-devel` and `kernel-headers`. ## TencentOS Server Info - **OS Release**: `ID=tencentos`, `ID_LIKE="tencentos"`, `PLATFORM_ID="platform:el9"` - **Package Manager**: dnf (yum compatible) - **Ecosystem**: Fully RHEL/EL9 compatible - **NVIDIA CUDA**: Uses the same RHEL CUDA repository - **Note**: `/etc/redhat-release` is NOT present by default - **Official site**: https://cloud.tencent.com/product/ts ## Testing Verified on TencentOS Server V4.4 (x86_64) that: - The install script correctly identifies TencentOS as a RHEL-family distribution - CUDA driver repository is correctly configured using the RHEL path - Kernel headers are installed with the correct version-specific packages --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-29 16:42:27 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#61644