How To

tldr Command on Linux: tealdeer vs tlrc vs Python vs Node

Which tldr client you install decides whether tldr tar answers in 2 milliseconds or in a full second. The tldr command prints the few examples people actually run with a tool, pulled from the community tldr-pages project, and four clients read those same pages: tealdeer and tlrc in Rust, plus a Python and a Node.js client. On one Ubuntu 26.04 VM the two Rust clients rendered a page in 2 ms, the Python client in 136 ms, and the Node.js client needed about a second per lookup and over two minutes to refresh its cache.

Original content from computingforgeeks.com - post 76210

You’ll install all four below, compare their install time, cache size and update speed, and see the exact errors you get when the cache is missing, stale or offline. Our pick: tealdeer where your distro packages it, tlrc elsewhere. Every command below was run on Ubuntu 26.04.1 LTS and Fedora 45 in November 2026.

Pick a tldr client

Install tealdeer on Ubuntu or Debian, tlrc when you want the client tldr-pages calls official, and the Python client on Fedora because it’s the only one Fedora packages. Skip the Node.js client unless npm is already your daily tool. We installed each one on the same e2-standard-2 Ubuntu 26.04 VM and timed it, so the numbers below compare like with like:

ClientInstall methodInstall timeSize on diskFull cache downloadCache size20 lookups
tealdeer 1.8.1 (Rust)apt6.3 s3.6 MB binary1.2 s31 MB0.05 s
tlrc 1.13.1 (Rust)cargo install2 min 52 s compile3.0 MB binary0.6 s, automatic31 MB0.045 s
tldr 3.4.4 (Python)pipx or dnf7 s (pipx), 13.5 s (dnf)508 KB venv1.7 s31 MB2.8 s
tldr 3.5.0 (Node.js)npm7 s94 MB2 min 7 s60 MB20.8 s

Cache size barely moves because every client downloads the same tldr-pages content from GitHub, roughly 7,600 English pages. What differs is the work done around it. The Node.js client spends two minutes of pure CPU building an index on every update and pays about a second of startup on each lookup, which is 500 times slower than the Rust clients. Python sits in between. It is fast enough for interactive use, but it flattens each example onto a single line when you pipe it.

Packaging is the other half of the decision, and it has changed since most tldr guides were written:

  • Ubuntu 26.04 universe: tealdeer 1.8.1 and tldr-py 0.7.0, but no tldr and no tlrc package
  • Fedora 45: only tldr 3.4.4, the Python client
  • Snap Store: no tldr snap at all
  • Upstream tealdeer is at 1.9.1, so the Ubuntu package trails it by a minor release

Ubuntu’s tldr-py package is an older, separate Python project, not the tldr-pages Python client that pipx and Fedora install, so do not treat the two as interchangeable. If you want the current Python client, use pipx as shown later; otherwise start with tealdeer.

Install tealdeer on Ubuntu 26.04

tealdeer is in the Ubuntu universe repository, installs in about 6 seconds and drops a single 3.6 MB binary at /usr/bin/tldr. Refresh the package index and install it:

sudo apt update
sudo apt install -y tealdeer

The package installs no pages, and tealdeer does not download them by itself, so your first lookup fails with exit code 1. That is deliberate, because tealdeer never touches the network unless you ask it to, which suits locked-down servers. You build the cache once with tldr --update, and it took about a second here:

tldr --update

Both steps on the lab VM, with the first-run message tealdeer prints before the cache exists:

tealdeer tldr command on Ubuntu 26.04 showing the page cache not found error and tldr --update downloading pages

Our update finished in 1.2 seconds, created ~/.cache/tealdeer/tldr-pages and pulled only the English pages. The finished cache weighs 31 MB and tldr --list counted 7,405 pages. To see where tealdeer keeps its config, cache and custom pages, ask it:

tldr --show-paths

Every path lives under your home directory, so each user on the box keeps a separate cache. Running sudo tldr --update fills root’s cache, not yours, because nothing here is shared system wide. Run the update as the account that reads the pages:

Config dir:       /home/josphat/.config/tealdeer/ (OS convention)
Config path:      /home/josphat/.config/tealdeer/config.toml (OS convention)
Cache dir:        /home/josphat/.cache/tealdeer (OS convention)
Pages dir:        /home/josphat/.cache/tealdeer/tldr-pages/
Custom pages dir: /home/josphat/.local/share/tealdeer/pages/ (OS convention)

Now look up a real command. Each page shows the short description, a link to the upstream manual, and examples with the flag letters marked in brackets so you can see where czf comes from:

tldr --show-paths and the tldr tar page rendered by tealdeer on Ubuntu 26.04

A warm lookup took 2 ms, and 20 back to back took 0.05 s in total, so tealdeer is fast enough to call from shell functions or fzf previews without any lag you’d notice. Pages like this are the short version of what our grep cheat sheet covers at full length.

Turn on automatic updates in tealdeer

tealdeer ships with auto_update = false, so the cache only changes when you run tldr --update, and every lookup starts printing a warning once it is old. After we aged the lab cache by 45 days, each page came with this on stderr:

The cache hasn't been updated for 45 days.
You should probably run `tldr --update` soon.

You can let tealdeer refresh itself instead. Write a starter config first, since the package does not create one and tealdeer runs on built-in defaults until a file exists:

tldr --seed-config

It confirms the path it wrote. Nothing in that file changes behaviour yet, because every key in the seed matches the built-in defaults.

Successfully created seed config file here: /home/josphat/.config/tealdeer/config.toml

Open the file in your editor. You do not need sudo because the config sits in your home directory, so the change affects only your account. Other users on the box keep the default until they seed their own:

vim ~/.config/tealdeer/config.toml

Find the [updates] section and flip auto_update to true. Keep the interval of 720 hours unless you have a reason to change it, because pages change slowly and a refresh every 30 days is plenty:

[updates]
auto_update = true
auto_update_interval_hours = 720
archive_source = "https://github.com/tldr-pages/tldr/releases/latest/download/"
tls_backend = "rustls-with-native-roots"

With that saved, the next lookup on our 45-day-old cache downloaded fresh pages before printing the tar page, and the whole command took 0.63 s:

Successfully updated cache.
Pages for the following languages were downloaded: en

Leave auto updates off on air-gapped hosts. With no network, tealdeer still renders from the old cache and only adds the stale warning, which is the behaviour you want on a box that never reaches GitHub.

Install tlrc, the official Rust client

tlrc calls itself the official tldr client, and it implements client specification 2.3 (the Node.js client reports 2.0). Neither Ubuntu 26.04 nor Fedora 45 packages it, so you build it from crates.io with cargo. The project also publishes prebuilt binaries on its GitHub releases page, which we didn’t test. Install the Rust toolchain from the Ubuntu archive:

sudo apt install -y cargo

Build tlrc with the versions pinned in its lockfile. On 2 vCPUs this compiles for almost three minutes:

cargo install tlrc --locked

Cargo’s last lines name the binary. It is called tldr, not tlrc, so it competes with any other client you have for the same command name:

    Finished `release` profile [optimized] target(s) in 2m 52s
  Installing /home/josphat/.cargo/bin/tldr
   Installed package `tlrc v1.13.1` (executable `tldr`)

Two things to sort out before the next commands. Ubuntu’s cargo package does not put ~/.cargo/bin on your PATH, so add it in your shell profile (our lab shell exported it ahead of the system directories). If tealdeer is still installed, remove it with sudo apt remove tealdeer or call ~/.cargo/bin/tldr by full path, because /usr/bin/tldr would otherwise answer and it has no --info flag. Run type -a tldr to confirm which binary wins. Unlike tealdeer, tlrc downloads the cache on its first lookup, checks the archive against the published SHA-256 sums, and then prints the page:

tlrc official tldr client downloading the page cache automatically on first run

Our 3.23 MiB English archive unpacked into 7,615 pages, and the whole first run, page included, finished in 0.58 s. That checksum step is a small thing the other three clients skip. To see the cache path, its age and the next automatic refresh:

tldr --info

You get a refresh every 14 days with no config at all, because tlrc ships with auto updates on:

Cache: /home/josphat/.cache/tlrc (last update: 0s ago)
Automatic update in 14d
Installed languages:
en    : 7615
total : 7615 pages

A second tldr --update right after the first only fetched the 3.68 KiB checksum file and finished in 0.08 s, because tlrc compares sums before downloading any archive.

Add a second language to tlrc

tlrc reads its languages from a config file that does not exist until you create it. Asking for a language you haven’t installed fails with error: the specified language is not installed., so write the default config to the path tlrc expects:

tldr --config-path
tldr --gen-config > ~/.config/tlrc/config.toml

Open the new file. Every key is already filled in with the defaults, so you only change the lines you care about and leave the rest alone.

vim ~/.config/tlrc/config.toml

The [cache] section at the top holds the update settings. max_age = 336 is the 14 days in hours. Set languages to every language you want, English included:

[cache]
dir = "~/.cache/tlrc"
mirror = "https://github.com/tldr-pages/tldr/releases/latest/download"
auto_update = true
defer_auto_update = false
max_age = 336
languages = ["es", "en"]

Run tldr --update and tlrc adds the Spanish archive (1.06 MiB, 2,429 pages) while keeping the English pages, so tldr -L es tar and plain tldr tar both work. The cache grew from 31 MB to 40 MB. tealdeer behaves differently here, as the troubleshooting section shows.

Install the tldr client on Fedora 45

Fedora 45 packages exactly one client, the Python one, under the name tldr. There’s no tealdeer and no tlrc in the Fedora repositories, which dnf info shows plainly:

dnf info on Fedora 45 showing no tealdeer or tlrc package and the tldr Python client package

Fedora’s package is noarch and only 109.9 KiB installed, and it’s the same tldr our Fedora 44 Workstation post-install checklist adds to a new desktop. Install it; dnf also pulls in python3-termcolor and python3-shtab, and the whole transaction took 13.5 s on a fresh cloud image:

sudo dnf install -y tldr

The Python client fetches a page on demand the first time you ask for it, so tldr tar works straight away (1.9 s on the first call; the same first run on Ubuntu left a 16 KB cache). Download the whole set if you want --list and offline use:

tldr --update

Run it once after install even though single pages work without it, because --list and offline lookups only see what is cached. It took 2.0 s on Fedora and left 30 MB in ~/.cache/tldr:

Updated cache for language en: 7615 entries

If you would rather run a Rust client on Fedora, the cargo build from the tlrc section is the route; we ran that build on Ubuntu only. Fedora users who also manage desktop apps will find the same per-user versus system install split in our Flatpak cheat sheet.

Install the Python client with pipx

On Ubuntu the tldr-pages Python client is not in apt, so pipx is the clean way to get it: it installs into its own 508 KB virtual environment and links tldr into ~/.local/bin, which Ubuntu only adds to PATH at login if the directory already existed, so log in again after the first pipx install (or run pipx ensurepath). Install pipx, then the client:

sudo apt install -y pipx
pipx install tldr

pipx noticed tlrc was already on the lab PATH and warned about it. That warning is the collision from the previous section, and it means plain tldr still ran tlrc, so the update in this capture ran as ~/.local/bin/tldr:

pipx install tldr Python client on Ubuntu 26.04 with the PATH collision note and cache update

Staleness is handled quietly here. You never see a warning; instead the client re-downloads any page older than TLDR_CACHE_MAX_AGE hours (168 by default) when you look it up. Two flags trip people moving from other clients: -c forces colour instead of clearing the cache, and the cache is cleared with -k. Its output also loses line breaks when piped, so tldr tar | less reads worse here than with tealdeer.

Install the Node.js client with npm

Node.js still runs the client fine, but it is the slowest by a wide margin, so pick it only if Node.js is already on the machine for other work. On a bare Ubuntu 26.04 server, Node.js 22 and npm from the archive took 68 seconds before the client itself:

sudo apt install -y nodejs npm
sudo npm install -g tldr

npm reported added 95 packages in 6s and printed no deprecation warnings. Those 95 packages take 94 MB under /usr/local/lib/node_modules/tldr, against 3.0 to 3.6 MB for the Rust binaries. You pay the real cost on the first lookup and on every update, so expect a CPU-bound index build each time. The capture below called it as /usr/local/bin/tldr because tlrc sat earlier on the lab PATH:

Node.js tldr client taking over two minutes to update its cache and 20 seconds for 20 page lookups

Updating took 2 min 7 s, the first lookup’s index build held the node process near 700 MB of memory, and 20 lookups took 20.8 s. What you get for it is search: the Node.js client builds a search corpus, so a plain English query finds pages across platforms. Search with -s:

tldr -s "list files sorted by date"

It returned eight candidates in 2.4 s and labels the ones that only exist on Windows or macOS:

Searching for: list files sorted by date

    $ sort
    $ date
    $ sort-object (Available on: windows)
    $ get-date (Available on: windows)
    $ gsort (Available on: osx)
    $ gnusort
    $ gnudate
    $ set-date (Available on: windows)

Run tldr <command> to see specific pages.

Run the same query through tlrc and you get error: no pages matched your search term., while the Python client says No commands matched your search term.. Both match a keyword literally rather than ranking pages, so a full sentence finds nothing. tealdeer has no search at all. The Node.js client also has -r for a random page, which nothing else offers.

Use the same tldr flags on every client

Looking up a page is identical everywhere (tldr <command>), but the flags around it are not, and a muscle-memory -c means three different things depending on the client. This table comes from each client’s own --help on the lab VM:

TasktealdeertlrcPythonNode.js
Update the cache-u-u-u-u
List pages for this OS-p linux -l-l-l-l
List every page-l (all platforms)-anone-a
Another platform-p macos-p osx-p osx-p osx
Another language-L es-L es-L esnone
Searchnone-s--search-s
Clear the cache-c--clean-cache-k-c
Skip network--no-auto-update-ononenone
Show cache info--show-paths-inonenone

tealdeer also accepts osx as a platform name, so -p osx is the one spelling that works on all four. Platform pages are handy when you SSH from a Mac and want the macOS flags of a tool. Try it with tealdeer.

tldr --platform osx caffeinate

On Linux you get the macOS page; these are its first two examples:

  Prevent macOS from sleeping.
  More information: <https://keith.github.io/xcode-man-pages/caffeinate.8.html>.

  Prevent the display from sleeping:

      caffeinate -d

  Prevent from sleeping for 1 hour (3600 seconds):

      caffeinate -u -t 3600

tldr pages stop at the common cases by design. For the long tail of flags on tools like curl, our curl cheat sheet picks up where the tldr page ends, and the full set of printable references sits on the Linux and DevOps cheat sheets page.

Fix tldr cache, offline and missing page errors

Each error below was triggered on the lab VM with an empty cache, a cache aged 45 days with touch, and HTTPS to GitHub blocked with an iptables reject rule to simulate an offline host.

Error: “Page cache not found. Please run `tldr –update` to download the cache.”

tealdeer prints this on a fresh install or right after tldr --clear-cache, and it exits with code 1 because the apt package ships no pages. Run tldr --update once, or set auto_update = true as shown above so new users on the box never hit it.

Error: “Page `tar` not found in cache.” after a language update

tealdeer’s tldr -L es --update downloaded only the Spanish pages and replaced the English cache, which shrank to 9.7 MB, so every English lookup failed afterwards. A plain tldr --update brought English back. The -L flag overrides tealdeer’s language settings; to keep two languages, tealdeer 1.8 documents download_languages under [updates] (we tested the two-language setup on tlrc only, where the languages list kept both).

Error: “An error occurred during the automatic update.”

tlrc has the strangest offline behaviour of the four. When tlrc’s cache is past max_age and GitHub is unreachable, a plain lookup tries to update, fails, and prints no page at all. The -o (--offline) flag skips the update and renders from the stale cache with a warning:

tlrc stale cache automatic update failing with Connection refused and the --offline flag rendering the page

On laptops that go offline often, set auto_update = false in ~/.config/tlrc/config.toml and run tldr -u yourself, or alias tldr to tldr -o.

Error: “Could not update cache” when the network is down

With a cache that is not stale, all four clients keep serving pages offline, but they report the failed update differently, and that matters if a cron job or Ansible task runs the update:

  • tealdeer: Could not update cache plus a ConnectionRefused cause, exit 1
  • tlrc: error: io: Connection refused, exit 4
  • Python: Error: Unable to update cache for language en from https://github.com/..., exit 0
  • Node.js: no message at all after 1 min 59 s, exit 0

Only the two Rust clients fail in a way a script can detect, so check output rather than exit codes with the other two. Every client downloads from github.com over port 443; on a host behind a proxy, allow that destination first.

Error: “error: page not found. Try running ‘tldr –update’.”

tlrc prints this for a command with no page. tealdeer says Page `notarealcmd123` not found in cache., the Python client says `notarealcmd123` documentation is not available., and the Node.js client prints Page not found. with exit code 3 (the others exit 1). Update the cache first, then try the page under its platform with -p, because a macOS-only or Windows-only tool won’t show up on Linux. If the page truly doesn’t exist, every client links to the tldr-pages repository where you can add it.

Error: “no snap found for “tldr””

Older guides, including the first version of this one, told you to run sudo snap install tldr. The snap is gone, and snap info tldr now returns error: no snap found for "tldr". Use the apt tealdeer package or one of the other routes above. Once a client is in place, tldr is the fastest way to recall the flags you half remember, and tealdeer or tlrc keep it under a few milliseconds per lookup.

Keep reading

Java4Shell (CVE-2026-114938): Find and Patch Vulnerable JVMs Security Java4Shell (CVE-2026-114938): Find and Patch Vulnerable JVMs How to Upgrade Fedora 44 to Fedora 45 (GUI, CLI and Rollback) Fedora How to Upgrade Fedora 44 to Fedora 45 (GUI, CLI and Rollback) Upgrade Ubuntu 24.04 to Ubuntu 26.04 LTS (Step by Step) Ubuntu Upgrade Ubuntu 24.04 to Ubuntu 26.04 LTS (Step by Step) Moonfin for Jellyfin: Moonbase Plugin, Web App and Desktop Setup Debian Moonfin for Jellyfin: Moonbase Plugin, Web App and Desktop Setup NVIDIA Kernel Module Missing, Falling Back to Nouveau on Fedora Fedora NVIDIA Kernel Module Missing, Falling Back to Nouveau on Fedora How to Install Telegraf on Fedora 39/38/37/36/35/34 Monitoring How to Install Telegraf on Fedora 39/38/37/36/35/34

Leave a Comment

Press ESC to close