How to install ripgrep (rg)?

What is ripgrep (rg)?

ripgrep is a line-oriented search tool that recursively searches the current directory for a regex pattern. By default, ripgrep will respect gitignore rules and automatically skip hidden files/directories and binary files. ripgrep has first class support on Windows, macOS and Linux, with binary downloads available for every release. ripgrep is similar to other popular search tools like The Silver Searcher, ack and grep.

Install ripgrep (rg) on MAC OS:

Install ripgrep (rg) on Arch Linux OS:

Install ripgrep (rg) on Windows OS:

Install ripgrep (rg) on Gentoo OS:

Install ripgrep (rg) on Fedora OS:

Install ripgrep (rg) on RHEL and CentOS OS:

Install ripgrep (rg) on Ubuntu and Debian OS:

Install ripgrep (rg) on FreeBDS OS:

Install ripgrep (rg) on OpenBDS OS:

From source:

ripgrep is written in Rust, so you’ll need to grab a Rust installation in order to compile it. ripgrep compiles with Rust 1.34.0 (stable) or newer. In general, ripgrep tracks the latest stable release of the Rust compiler.

Confirm if the installation was successful:

To get more details on ripgrep (rg) please refer https://github.com/BurntSushi/ripgrep

Leave a Reply