โšก 43 developer tools, always updated โ€” new upstream releases land in apt within hours. Join the Discord

๐Ÿ“… From , the apt mirror will require a subscription. See pricing

๐Ÿ”Ž Install Latest ripgrep on Ubuntu

Recursively search directories for a regex pattern, respecting your gitignore

Latest version: 15.2.0 ยท updated 2026-08-10
SourceVersion
deb.griffo.io15.2.0 โœ…
Official Ubuntu15.1.0 ๐Ÿ›‘
โ† Back to home
๐Ÿ“Œ Installing on a specific release? Ubuntu 22.04 (jammy) ยท Ubuntu 24.04 (noble) ยท Ubuntu 25.10 (questing) ยท Ubuntu 26.04 (resolute)

What is ripgrep?

ripgrep (the rg command) is a line-oriented search tool written in Rust by Andrew Gallant. It recursively searches the current directory for a regex pattern while respecting your .gitignore rules and automatically skipping hidden files, ignored files and binary files. It is the search engine behind editors like VS Code, and it is generally faster than GNU grep, The Silver Searcher and ack.

๐Ÿš€ Why Latest Versions Matter: ripgrep gains real capability between releases โ€” hyperlink support for jumping straight into your editor, --engine auto for transparent PCRE2 fallback, richer --json output and steady throughput gains in its regex engine. The archive version predates most of it.

โšก Key Features of ripgrep

๐Ÿš€ Extremely Fast

A finite automata regex engine, SIMD literal scanning, memory maps and parallel directory traversal make it faster than grep on large trees.

๐Ÿ™ˆ Respects .gitignore

Skips ignored files, hidden files and binaries by default, so results are the ones you actually care about. Override with -u, -uu or -uuu.

๐ŸŒ Full Unicode Support

Unicode-aware by default โ€” character classes, case folding, word boundaries and grapheme handling all work correctly, at no real speed cost.

๐Ÿงฉ PCRE2 Regex

-P unlocks look-around and backreferences. This build has PCRE2 compiled in, so it works out of the box with JIT enabled.

๐Ÿ“„ File Type Filtering

Restrict a search to a language with -t rust, exclude with -T html, or define your own types. Over 800 globs ship built in.

๐Ÿ” Multiline & Replace

Search across line boundaries with -U, preview substitutions with -r, and emit structured results with --json.

๐Ÿš€ 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 $(lsb_release -sc 2>/dev/null) 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 $(lsb_release -sc 2>/dev/null) main" | tee /etc/apt/sources.list.d/deb.griffo.io.list > /dev/null
apt update

Step 2: Install ripgrep

# Install latest ripgrep
sudo apt install ripgrep

# Verify installation
rg --version
# Install latest ripgrep
apt install ripgrep

# Verify installation
rg --version

Step 3: Shell Completions

# Completions for bash, zsh and fish ship with the package โ€”
# nothing to configure. Open a new shell and press Tab:
rg --ty<Tab>

# The manual page is installed too
man rg

๐ŸŽฏ Basic Usage Examples

Everyday searching:

# Search the current directory tree
rg 'TODO'

# Case-insensitive, whole word
rg -i -w 'timeout'

# Show 3 lines of context around each match
rg -C 3 'panic!'

# List only the files that contain a match
rg -l 'BurntSushi'

Filtering what gets searched:

# Only Rust files
rg -t rust 'unsafe'

# Everything except HTML and CSS
rg -T html -T css 'font-size'

# Include ignored and hidden files
rg -uu 'password'

# Restrict with a glob
rg -g '*.toml' 'version'

Beyond plain grep:

# Look-around and backreferences via PCRE2
rg -P '(?<=fn )\w+' src/

# Search across line boundaries
rg -U 'struct \w+ \{\n[^}]*pub'

# Preview a substitution (does not write files)
rg 'v(\d+)\.(\d+)' -r 'v$1.$2.0'

# Structured output for scripting
rg --json 'error' | jq -r 'select(.type=="match") | .data.path.text'

๐Ÿ”ง Tool Integrations

ripgrep is the search backend a lot of other tooling expects:

  • fzf: live-reload interactive grep with rg as the source
  • Neovim / Telescope: live_grep uses ripgrep when it is on PATH
  • Helix: global search is powered by the same underlying crates
  • bat: syntax-highlighted previews of ripgrep hits
  • Yazi: file-manager search built on ripgrep

๐Ÿš€ Why Choose deb.griffo.io?

๐Ÿ“Š Repository Comparison:
  • Official Ubuntu: available, but frozen at the version that shipped with the release
  • Manual Installation: requires a Rust toolchain, or hand-managing a binary and its completions
  • 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: developers searching large codebases, anyone who wants grep that honours .gitignore by default, editor and tooling setups that shell out to rg, and users who care about search speed on big directory trees.

๐Ÿ’ 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 ripgrep โ€” one page covering Debian and Ubuntu.

๐Ÿ“ฆ Recent releases from this repository

๐Ÿ“š Release-specific install guides

โ“ Frequently asked questions

Is ripgrep in the official Ubuntu repositories?

Yes, but the official Ubuntu archive ships ripgrep 15.1.0, while this repository serves ripgrep 15.2.0 โ€” rebuilt within hours of each upstream release.

How do I install the latest ripgrep on Ubuntu?

Add the deb.griffo.io repository once using the instructions above, then run: sudo apt install ripgrep. 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 and 26.04 Resolute.