Notices: This section not yet converted to new layout. Download stats are rolling back out.

ripgrep

0.10.0

Package test results are passing.

Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

This package was approved as a trusted package on 1/23/2019.

ripgrep is a command line search tool that combines the usability of The Silver Searcher (an ack clone)
with the raw speed of GNU grep. ripgrep has first class support on Windows, Mac and Linux, with binary
downloads available for every release.

## Notes

We are currently depending on Visual C++ Redistributable for Visual Studio 2015 https://chocolatey.org/packages/vcredist2015. This will change once this https://github.com/rust-lang/rust/pull/37545 is resolved and ripgrep can statically link the CRT.

To install ripgrep, run the following command from the command line or from PowerShell:

C:\> choco install ripgrep

To upgrade ripgrep, run the following command from the command line or from PowerShell:

C:\> choco upgrade ripgrep

Files

Hide
  • tools\chocolateyinstall.ps1 Show
    $ErrorActionPreference = 'Stop';
    
    $version     = $env:chocolateyPackageVersion
    $packageName = $env:chocolateyPackageName
    $toolsDir    = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
    
    $url         = ("https://github.com/BurntSushi/ripgrep/releases/download/{0}/ripgrep-{0}-i686-pc-windows-msvc.zip" -f $version)
    $url64       = ("https://github.com/BurntSushi/ripgrep/releases/download/{0}/ripgrep-{0}-x86_64-pc-windows-msvc.zip" -f $version)
    
    $packageArgs = @{
        packageName    = $packageName
        unzipLocation  = $toolsDir
        fileType       = 'exe'
        url            = $url
        checksum       = "4C3C47455F88183C0D8841BFC8F00699F5A1D978"
        checksumType   = "sha1"
        url64bit       = $url64
        checksum64     = "F55E6355AE050CA0A8FF8DF3FB5D1B80A1CB6500"
        checksumType64 = "sha1"
    }
    
    Install-ChocolateyZipPackage @packageArgs
    

Virus Scan Results

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Dependencies

Package Maintainer(s)

Software Author(s)

  • BurntSushi

Tags

Release Notes

ripgrep is a line-oriented search tool that recursively searches your current directory for a regex pattern while respecting your gitignore rules. 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.

This is a new minor version release of ripgrep that contains some major new
features, a huge number of bug fixes, and is the first release based on
libripgrep. The entirety of ripgrep's core search and printing code has been
rewritten and generalized so that anyone can make use of it.

Major new features include PCRE2 support, multi-line search and a JSON output
format.

BREAKING CHANGES:

  • The minimum version required to compile Rust has now changed to track the
    latest stable version of Rust. Patch releases will continue to compile with
    the same version of Rust as the previous patch release, but new minor
    versions will use the current stable version of the Rust compile as its
    minimum supported version.
  • The match semantics of -w/--word-regexp have changed slightly. They used
    to be \\b(?:<your pattern>)\\b, but now it's
    (?:^|\\W)(?:<your pattern>)(?:$|\\W). This matches the behavior of GNU grep
    and is believed to be closer to the intended semantics of the flag. See
    #389 for more details.

Feature enhancements:

  • FEATURE #162:
    libripgrep is now a thing. The primary crate is
    grep.
  • FEATURE #176:
    Add -U/--multiline flag that permits matching over multiple lines.
  • FEATURE #188:
    Add -P/--pcre2 flag that gives support for look-around and backreferences.
  • FEATURE #244:
    Add --json flag that prints results in a JSON Lines format.
  • FEATURE #321:
    Add --one-file-system flag to skip directories on different file systems.
  • FEATURE #404:
    Add --sort and --sortr flag for more sorting. Deprecate --sort-files.
  • FEATURE #416:
    Add --crlf flag to permit $ to work with carriage returns on Windows.
  • FEATURE #917:
    The --trim flag strips prefix whitespace from all lines printed.
  • FEATURE #993:
    Add --null-data flag, which makes ripgrep use NUL as a line terminator.
  • FEATURE #997:
    The --passthru flag now works with the --replace flag.
  • FEATURE #1038-1:
    Add --line-buffered and --block-buffered for forcing a buffer strategy.
  • FEATURE #1038-2:
    Add --pre-glob for filtering files through the --pre flag.

Bug fixes:

  • BUG #2:
    Searching with non-zero context can now use memory maps if appropriate.
  • BUG #200:
    ripgrep will now stop correctly when its output pipe is closed.
  • BUG #389:
    The -w/--word-regexp flag now works more intuitively.
  • BUG #643:
    Detection of readable stdin has improved on Windows.
  • BUG #441,
    BUG #690,
    BUG #980:
    Matching empty lines now works correctly in several corner cases.
  • BUG #764:
    Color escape sequences now coalesce, which reduces output size.
  • BUG #842:
    Add man page to binary Debian package.
  • BUG #922:
    ripgrep is now more robust with respect to memory maps failing.
  • BUG #937:
    Color escape sequences are no longer emitted for empty matches.
  • BUG #940:
    Context from the --passthru flag should not impact process exit status.
  • BUG #984:
    Fixes bug in ignore crate where first path was always treated as a symlink.
  • BUG #990:
    Read stderr asynchronously when running a process.
  • BUG #1013:
    Add compile time and runtime CPU features to --version output.
  • BUG #1028:
    Don't complete bare pattern after -f in zsh.

Version History

Version Downloads Last updated Status
ripgrep 0.9.0 892 Tuesday, August 7, 2018 approved
ripgrep 0.8.1 2434 Wednesday, February 21, 2018 approved
ripgrep 0.8.0 460 Monday, February 12, 2018 approved
ripgrep 0.7.1 1562 Tuesday, October 24, 2017 approved
ripgrep 0.6.0 1102 Friday, August 25, 2017 approved
ripgrep 0.5.2 1106 Tuesday, May 23, 2017 approved
ripgrep 0.5.1 539 Thursday, April 20, 2017 approved
ripgrep 0.5.0 572 Tuesday, March 14, 2017 approved
ripgrep 0.4.0 405 Tuesday, January 17, 2017 approved
Show More

Discussion for the ripgrep Package

Ground rules:

  • This discussion is only about ripgrep and the ripgrep package. If you have feedback for Chocolatey, please contact the google group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or ripgrep, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.

comments powered by Disqus
Chocolatey.org uses cookies to enhance the user experience of the site.
Ok