⚡ 75 developer tools, always updated, new upstream releases land in apt within hours. Join the Discord

🎁 The apt mirror needs a subscription. Plans start at €15 a year. See pricing · 🆓 Free repository: 7 of 75 tools · 🔐 apt returning 401?

🔮 Install Latest preload-ng on Ubuntu

An adaptive readahead daemon: it learns which programs you launch and loads them into RAM before you ask

Latest version: 0.4.0.20261204 · updated 2026-12-04
SourceVersion
deb.griffo.io0.4.0.20261204 ✅
Official Ubuntu🚫 not packaged
← Back to home

What is preload-ng?

preload-ng is an adaptive readahead daemon. It runs in the background, watches which programs you start, predicts which ones you will start next, and reads their binaries and shared libraries into the page cache ahead of time, so the browser, editor or IDE you open every morning starts from RAM instead of from disk. It is a fork of preload-rs, the Rust rewrite of the classic preload daemon, and adds a least-squares prediction model, fanotify file-open monitoring that also sees short-lived programs, a terminal UI (preload-ng top), a status socket and hit-rate metrics. It is written in Rust and is Apache-2.0 licensed.

🚀 Why Latest Versions Matter: preload-ng is young and moves fast, and upstream publishes no releases at all, only commits to master. This repository builds a snapshot every Friday when master has moved, versioned <cargo version>.<YYYYMMDD> (for example 0.4.0.20261204), so apt upgrade brings you the week's changes without a Rust toolchain. Ubuntu does not package preload-ng at all.

⚡ Key Features of preload-ng

🧠 Learns Your Habits

It records which programs run together and when, and keeps that model across reboots, so the longer it runs the better its guesses get. Nothing to configure for it to start learning.

📈 Smarter Prediction

preload-ng adds a least-squares prediction model ("delta") that the classic daemon never had, for sharper guesses about which program you will open next.

👁️ Sees Short-Lived Programs

fanotify file-open monitoring catches programs that start and exit between two scans, which a periodic scan of running processes can miss.

📺 preload-ng top

A terminal UI that shows what the daemon has learned, what it is preloading right now and how often a launch was already in cache, read live from its status socket.

⚙️ A Ready Service

Like PostgreSQL or OpenSSH, the package enables and starts its systemd service on install and restarts it on upgrade. Configuration is optional and reloads without a restart.

🧓 Older Kernels Too

It detects the fanotify and cachestat features of Linux 5.19, 6.0 and 6.5 at start-up and falls back when they are missing, so Jammy's 5.15 kernel runs it too, with reduced monitoring.

🚀 Always ahead of the official archives: Debian and Ubuntu freeze package versions when a release ships. This repository publishes new upstream releases typically within hours. A simple apt upgrade keeps you on the latest version.

📦 Installation from deb.griffo.io

Run the commands

Step 1: Add Repository

sudo install -d -m 0755 /etc/apt/keyrings
curl -fsSL https://deb.griffo.io/EA0F721D231FDD3A0A17B9AC7808B4DD62C41256.asc | sudo gpg --dearmor --yes -o /etc/apt/keyrings/deb.griffo.io.gpg
echo "deb [signed-by=/etc/apt/keyrings/deb.griffo.io.gpg] https://deb.griffo.io/apt $(. /etc/os-release; echo ${DEBIAN_CODENAME:-${UBUNTU_CODENAME:-${VERSION_CODENAME%% *}}}) main" | sudo tee /etc/apt/sources.list.d/deb.griffo.io.list > /dev/null
sudo apt update
install -d -m 0755 /etc/apt/keyrings
curl -fsSL https://deb.griffo.io/EA0F721D231FDD3A0A17B9AC7808B4DD62C41256.asc | gpg --dearmor --yes -o /etc/apt/keyrings/deb.griffo.io.gpg
echo "deb [signed-by=/etc/apt/keyrings/deb.griffo.io.gpg] https://deb.griffo.io/apt $(. /etc/os-release; echo ${DEBIAN_CODENAME:-${UBUNTU_CODENAME:-${VERSION_CODENAME%% *}}}) main" | tee /etc/apt/sources.list.d/deb.griffo.io.list > /dev/null
apt update

🆓 A free repository covers 7 of 75 tools. deb-free.griffo.io needs no account or subscription, but it carries only 7 of the 75 tools: cliamp, Forgejo Runner, Ghostty, lazydocker, Oh My Posh, Uncloud and Zed. preload-ng is not one of them, so the repository above is the only apt source for it; the .deb itself stays free on GitHub.

How the free repository works →

Step 2: Install preload-ng

# Install latest preload-ng; the service is enabled and started right away
sudo apt install preload-ng

# Check the daemon is running
systemctl status preload-ng
# Install latest preload-ng; the service is enabled and started right away
apt install preload-ng

# Check the daemon is running
systemctl status preload-ng

Step 3: First run

# See what it has learned and what it is preloading
sudo preload-ng top

# Optional: join the preload-ng group to run it without sudo
sudo adduser $USER preload-ng
# log out and back in, then:
preload-ng top
# See what it has learned and what it is preloading
preload-ng top

# Optional: join the preload-ng group to run it without adduser $USER preload-ng
# log out and back in, then:
preload-ng top

🎯 Basic Usage Examples

The service:

# Status and recent log lines
systemctl status preload-ng
journalctl -u preload-ng -n 50

# Stop it for now, or keep it from starting at boot
sudo systemctl stop preload-ng
sudo systemctl disable preload-ng
# Status and recent log lines
systemctl status preload-ng
journalctl -u preload-ng -n 50

# Stop it for now, or keep it from starting at boot
systemctl stop preload-ng
systemctl disable preload-ng

Configuration:

# Optional: start from the example, which lists every setting
sudo mkdir -p /etc/preload-ng
sudo cp /usr/share/doc/preload-ng/examples/config.example.toml /etc/preload-ng/config.toml
sudo nano /etc/preload-ng/config.toml

# Drop-in files are read too: /etc/preload-ng/config.d/*.toml
# Apply changes without losing what it learned
sudo systemctl reload preload-ng
# Optional: start from the example, which lists every setting
mkdir -p /etc/preload-ng
cp /usr/share/doc/preload-ng/examples/config.example.toml /etc/preload-ng/config.toml
nano /etc/preload-ng/config.toml

# Drop-in files are read too: /etc/preload-ng/config.d/*.toml
# Apply changes without losing what it learned
systemctl reload preload-ng

Removing it:

# Remove keeps the learned state in /var/lib/preload-ng/state.db
sudo apt remove preload-ng

# Purge deletes the learned state too
sudo apt purge preload-ng
# Remove keeps the learned state in /var/lib/preload-ng/state.db
apt remove preload-ng

# Purge deletes the learned state too
apt purge preload-ng

🔧 Tool Integrations

preload-ng sits between systemd, the kernel's page cache and the programs you launch:

  • systemd: the preload-ng unit is enabled and started on install, restarted on upgrade, and systemctl reload preload-ng applies a new configuration in place
  • The classic preload package: preload-ng declares Conflicts: preload, so installing it removes the archive's preload (preload 0.6.4 in Ubuntu 22.04 to 26.04); the two do the same job and must not run side by side
  • The preload-ng group: the package creates a system group and the service runs with Group=preload-ng; members can open its status socket, so preload-ng top works without sudo
  • Per-user service: a user unit ships too, disabled; systemctl --user enable --now preload-ng runs a copy for your own session instead
  • The Linux kernel: fanotify and cachestat are used when the running kernel has them and skipped when it does not, with no setting to change
  • Memory: preloaded files live in the ordinary page cache, which the kernel drops first when a program needs the RAM

🚀 Why Choose deb.griffo.io?

📊 Repository Comparison:
  • Official Ubuntu: does not package preload-ng, apt install preload-ng fails on a stock system; only the classic preload is there (preload 0.6.4 in Ubuntu 22.04 to 26.04)
  • Upstream downloads: there are none: upstream publishes no releases, tags or binaries
  • cargo build from source: a clone, a Rust toolchain and a few minutes of compiling, plus a systemd unit, a group and a state directory you set up yourself, all repeated by hand whenever master moves
  • deb.griffo.io: latest version with automatic updates

📦 Package Build Repository

The Ubuntu packages are automatically built and maintained in this GitHub repository:

🔗 Related Packages

Also available from deb.griffo.io:

🎯 Perfect for: desktops and laptops where the same heavy applications open every day, machines on slower disks or with RAM to spare, and anyone running the classic preload who wants its actively developed successor.

💝 Support This Project

If this repository saves you time and effort, please consider supporting it!

⭐ Star on GitHub 🐦 Share on Twitter

Just after the command? See apt install preload-ng, one page covering Debian and Ubuntu.

📦 Recent releases from this repository

📚 Release-specific install guides

❓ Frequently asked questions

Is preload-ng in the official Ubuntu repositories?

No, preload-ng is not packaged in the official Ubuntu archives. This repository is currently the only apt source, serving preload-ng 0.4.0.20261204.

How do I install the latest preload-ng on Ubuntu?

Add the deb.griffo.io repository once using the instructions above, then run: sudo apt install preload-ng. New releases arrive through the normal sudo apt upgrade.

Are the packages signed and how are they built?

Every package is signed with the repository's GPG key (EA0F721D231FDD3A0A17B9AC7808B4DD62C41256) and built from upstream releases in public GitHub packaging repositories that anyone can inspect.

Which Ubuntu releases are supported?

Ubuntu 22.04 Jammy, 24.04 Noble, 25.10 Questing, 26.04 Resolute and 26.10 Stonking.