[PR #15009] docs: fix Linux uninstall command using sed instead of tr #14965

Open
opened 2026-04-13 01:07:03 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/15009
Author: @r266-tech
Created: 3/22/2026
Status: 🔄 Open

Base: mainHead: fix-docs-tr-uninstall


📝 Commits (1)

  • 4787721 docs: fix Linux uninstall command using sed instead of tr

📊 Changes

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

View changed files

📝 docs/linux.mdx (+1 -1)

📄 Description

Problem

The Linux uninstall command in docs uses tr 'bin' 'lib' which performs character-by-character translation, not string replacement.

tr maps: b→l, i→i, n→g

So /usr/local/bin/ollama becomes /usr/local/lig/ollama — a nonsensical path.

Fix

Replace tr 'bin' 'lib' with sed 's|bin|lib|' which correctly substitutes the string "bin" with "lib".

Example

Before: which ollama | tr 'bin' 'lib'/sbap/lig/ollama (snap) or /usr/local/lig/ollama
After: which ollama | sed 's|bin|lib|'/snap/lib/ollama or /usr/local/lib/ollama

Fixes #14931


🔄 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/15009 **Author:** [@r266-tech](https://github.com/r266-tech) **Created:** 3/22/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix-docs-tr-uninstall` --- ### 📝 Commits (1) - [`4787721`](https://github.com/ollama/ollama/commit/478772194f03cb8ec96b40f143174d35546cdd84) docs: fix Linux uninstall command using sed instead of tr ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/linux.mdx` (+1 -1) </details> ### 📄 Description ## Problem The Linux uninstall command in docs uses `tr 'bin' 'lib'` which performs character-by-character translation, not string replacement. `tr` maps: b→l, i→i, n→g So `/usr/local/bin/ollama` becomes `/usr/local/lig/ollama` — a nonsensical path. ## Fix Replace `tr 'bin' 'lib'` with `sed 's|bin|lib|'` which correctly substitutes the string "bin" with "lib". ## Example Before: `which ollama | tr 'bin' 'lib'` → `/sbap/lig/ollama` (snap) or `/usr/local/lig/ollama` After: `which ollama | sed 's|bin|lib|'` → `/snap/lib/ollama` or `/usr/local/lib/ollama` Fixes #14931 --- <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-13 01:07:03 -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#14965