Skip to content
pkgseek
All tools

ripgrep

File Search

Recursively search directories for a regex pattern. Faster than grep, respects .gitignore. Invoked as `rg`.

Aliases: rg · ripgrep

Installation by platform

Package and binary names are factual values and are never translated.

Package verification report

Debian

VerifiedGotcha
package
ripgrep
binary
rg
repository
main
sudo apt install ripgrep

The package is ripgrep but the binary is rg. Common mistake: `apt install rg` fails. Available from Debian 11 (bullseye) onward.

Indexed package evidence

Current representative package builds linked from pkgseek's release and architecture index.

ReleaseVersionArchitectureVerified binary path
trixie/main14.1.1-1+b4amd64/usr/bin/rg

Verified 2026-07-01source

Ubuntu

Repository not indexedGotcha
package
ripgrep
binary
rg
repository
universe
sudo apt install ripgrep

Package ripgrep, binary rg.

Verified 2026-07-01source

Arch

VerifiedGotcha
package
ripgrep
binary
rg
repository
extra
sudo pacman -S ripgrep

Package ripgrep, binary rg.

Verified 2026-07-01source

Fedora

VerifiedGotcha
package
ripgrep
binary
rg
repository
fedora
sudo dnf install ripgrep

Package ripgrep, binary rg.

Indexed package evidence

Current representative package builds linked from pkgseek's release and architecture index.

ReleaseVersionArchitectureVerified binary path
42/everything14.1.1-2.fc42x86_64/usr/bin/rg
43/updates15.2.0-1.fc43x86_64/usr/bin/rg
44/updates15.2.0-1.fc44x86_64/usr/bin/rg

Verified 2026-07-01source

Alpine

VerifiedGotcha
package
ripgrep
binary
rg
repository
community
sudo apk add ripgrep

Package ripgrep, binary rg.

Indexed package evidence

Current representative package builds linked from pkgseek's release and architecture index.

ReleaseVersionArchitectureVerified binary path
3.22/community14.1.1-r0x86_64/usr/bin/rg
3.23/community15.1.0-r0x86_64/usr/bin/rg
3.24/community15.1.0-r0x86_64/usr/bin/rg

Verified 2026-07-01source

openSUSE

VerifiedGotcha
package
ripgrep
binary
rg
repository
oss
sudo zypper install ripgrep

Package ripgrep, binary rg.

Indexed package evidence

Current representative package builds linked from pkgseek's release and architecture index.

ReleaseVersionArchitectureVerified binary path
15.6/oss13.0.0-bp156.4.13aarch64/usr/bin/rg
15.6/oss13.0.0-bp156.4.13ppc64le/usr/bin/rg
15.6/oss13.0.0-bp156.4.13s390x/usr/bin/rg
15.6/oss13.0.0-bp156.4.13x86_64/usr/bin/rg
16.0/oss14.1.1-bp160.1.1aarch64/usr/bin/rg
16.0/oss14.1.1-bp160.1.1ppc64le/usr/bin/rg
16.0/oss14.1.1-bp160.1.1s390x/usr/bin/rg
16.0/oss14.1.1-bp160.1.1x86_64/usr/bin/rg

Verified 2026-07-01source

Homebrew

Platform outside package indexGotcha
package
ripgrep
binary
rg
repository
homebrew/core
brew install ripgrep

Package ripgrep, binary rg.

Verified 2026-07-01source

Commands and flags

Flags are imported with their command-level source and verification date.

rg

rg [OPTIONS] PATTERN [PATH ...]

Verified 2026-06-28source

FlagDescriptionSince
--ignore-case, -iCase-insensitive search.—
--smart-case, -SCase-insensitive if the pattern is all lowercase, else case-sensitive.—
--fixed-strings, -FTreat the pattern as a literal string, not a regex.—
--word-regexp, -wOnly match the pattern surrounded by word boundaries.—
--type, -t <type>Only search files of the given type, e.g. -t py. `rg --type-list` shows all.—
--glob, -g <glob>Include or exclude files matching a glob. Prefix with ! to exclude.—
--hiddenSearch hidden files and directories.—
--no-ignoreDo not respect .gitignore / .ignore files.—
--files-with-matches, -lPrint only the paths of files that contain a match.—
--count, -cPrint the count of matching lines per file.—
--after-context, -A <n>Show n lines of trailing context.—
--before-context, -B <n>Show n lines of leading context.—
--context, -C <n>Show n lines of context on both sides.—
--replace, -r <text>Replace matches with the given text in the output (does not edit files).—