Unpacking Software Livestream

Join our monthly Unpacking Software livestream to hear about the latest news, chat and opinion on packaging, software deployment and lifecycle management!

Learn More

Chocolatey Product Spotlight

Join the Chocolatey Team on our regular monthly stream where we put a spotlight on the most recent Chocolatey product releases. You'll have a chance to have your questions answered in a live Ask Me Anything format.

Learn More

Chocolatey Coding Livestream

Join us for the Chocolatey Coding Livestream, where members of our team dive into the heart of open source development by coding live on various Chocolatey projects. Tune in to witness real-time coding, ask questions, and gain insights into the world of package management. Don't miss this opportunity to engage with our team and contribute to the future of Chocolatey!

Learn More

Calling All Chocolatiers! Whipping Up Windows Automation with Chocolatey Central Management

Webinar from
Wednesday, 17 January 2024

We are delighted to announce the release of Chocolatey Central Management v0.12.0, featuring seamless Deployment Plan creation, time-saving duplications, insightful Group Details, an upgraded Dashboard, bug fixes, user interface polishing, and refined documentation. As an added bonus we'll have members of our Solutions Engineering team on-hand to dive into some interesting ways you can leverage the new features available!

Watch On-Demand
Chocolatey Community Coffee Break

Join the Chocolatey Team as we discuss all things Community, what we do, how you can get involved and answer your Chocolatey questions.

Watch The Replays
Chocolatey and Intune Overview

Webinar Replay from
Wednesday, 30 March 2022

At Chocolatey Software we strive for simple, and teaching others. Let us teach you just how simple it could be to keep your 3rd party applications updated across your devices, all with Intune!

Watch On-Demand
Chocolatey For Business. In Azure. In One Click.

Livestream from
Thursday, 9 June 2022

Join James and Josh to show you how you can get the Chocolatey For Business recommended infrastructure and workflow, created, in Azure, in around 20 minutes.

Watch On-Demand
The Future of Chocolatey CLI

Livestream from
Thursday, 04 August 2022

Join Paul and Gary to hear more about the plans for the Chocolatey CLI in the not so distant future. We'll talk about some cool new features, long term asks from Customers and Community and how you can get involved!

Watch On-Demand
Hacktoberfest Tuesdays 2022

Livestreams from
October 2022

For Hacktoberfest, Chocolatey ran a livestream every Tuesday! Re-watch Cory, James, Gary, and Rain as they share knowledge on how to contribute to open-source projects such as Chocolatey CLI.

Watch On-Demand

Downloads:

216,052

Downloads of v 11.0.1:

2,586

Last Update:

16 Apr 2019

Package Maintainer(s):

Software Author(s):

  • BurntSushi

Tags:

search ripgrep rg

ripgrep

This is not the latest version of ripgrep available.

  • 1
  • 2
  • 3

11.0.1 | Updated: 16 Apr 2019

Downloads:

216,052

Downloads of v 11.0.1:

2,586

Maintainer(s):

Software Author(s):

  • BurntSushi

Tags:

search ripgrep rg

ripgrep 11.0.1

This is not the latest version of ripgrep available.

  • 1
  • 2
  • 3

All Checks are Passing

3 Passing Tests


Validation Testing Passed


Verification Testing Passed

Details

Scan Testing Successful:

No detections found in any package files

Details
Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

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

>

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

>

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

>

Deployment Method:

NOTE

This applies to both open source and commercial editions of Chocolatey.

1. Enter Your Internal Repository Url

(this should look similar to https://community.chocolatey.org/api/v2/)


2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://community.chocolatey.org/api/v2/. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Copy Your Script

choco upgrade ripgrep -y --source="'INTERNAL REPO URL'" --version="'11.0.1'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade ripgrep -y --source="'INTERNAL REPO URL'" --version="'11.0.1'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Install ripgrep
  win_chocolatey:
    name: ripgrep
    version: '11.0.1'
    source: INTERNAL REPO URL
    state: present

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.


chocolatey_package 'ripgrep' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '11.0.1'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


cChocoPackageInstaller ripgrep
{
    Name     = "ripgrep"
    Version  = "11.0.1"
    Source   = "INTERNAL REPO URL"
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'ripgrep':
  ensure   => '11.0.1',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

NOTE

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

Package Approved

This package was approved as a trusted package on 03 Jul 2019.

Description

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.


tools\chocolateyinstall.ps1
$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       = "00F8319FA863B69141728AF57543B3D1FD2228F0"
    checksumType   = "sha1"
    url64bit       = $url64
    checksum64     = "6AF5BF5EE7FBE32C49156421C8FF128A543A6DBE"
    checksumType64 = "sha1"
}

Install-ChocolateyZipPackage @packageArgs

Log in or click on link to see number of positives.

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.

Add to Builder Version Downloads Last Updated Status
ripgrep 14.0.3 10116 Friday, January 5, 2024 Approved
ripgrep 13.0.0.20220913 87639 Tuesday, September 13, 2022 Approved
ripgrep 13.0.0.20210621 28232 Monday, June 21, 2021 Approved
ripgrep 13.0.0 1369 Monday, June 14, 2021 Approved
ripgrep 12.1.1.20200727 13381 Monday, July 27, 2020 Approved
ripgrep 12.1.1 3257 Friday, May 29, 2020 Approved
ripgrep 12.1.0 1275 Friday, May 15, 2020 Approved
ripgrep 12.0.1 2864 Monday, March 30, 2020 Approved
ripgrep 11.0.2 6469 Friday, August 2, 2019 Approved
ripgrep 11.0.1 2586 Tuesday, April 16, 2019 Approved
ripgrep 0.10.0 3750 Monday, September 10, 2018 Approved
ripgrep 0.9.0 1132 Tuesday, August 7, 2018 Approved
ripgrep 0.8.1 2657 Wednesday, February 21, 2018 Approved
ripgrep 0.8.0 680 Monday, February 12, 2018 Approved
ripgrep 0.7.1 1797 Tuesday, October 24, 2017 Approved
ripgrep 0.6.0 1311 Friday, August 25, 2017 Approved
ripgrep 0.5.2 1314 Tuesday, May 23, 2017 Approved
ripgrep 0.5.1 741 Thursday, April 20, 2017 Approved
ripgrep 0.5.0 794 Tuesday, March 14, 2017 Approved
ripgrep 0.4.0 607 Tuesday, January 17, 2017 Approved
ripgrep 0.3.2 482 Thursday, December 8, 2016 Approved
ripgrep 0.3.1 481 Tuesday, November 22, 2016 Approved
ripgrep 0.3.0 390 Monday, November 21, 2016 Approved
ripgrep 0.2.9.1 422 Friday, November 18, 2016 Approved
ripgrep 0.2.9 422 Thursday, November 10, 2016 Approved
ripgrep 0.2.8 449 Monday, November 7, 2016 Approved
ripgrep 0.2.6 419 Thursday, November 3, 2016 Approved
ripgrep 0.2.5 426 Monday, October 31, 2016 Approved
ripgrep 0.2.1 502 Friday, September 30, 2016 Approved

ripgrep 11.0.1 is a new patch release that fixes a search regression introduced
in the previous 11.0.0 release. In particular, ripgrep can enter an infinite
loop for some search patterns when searching invalid UTF-8.

Bug fixes:

  • BUG #1247:
    Fix search bug that can cause ripgrep to enter an infinite loop.

Notes for 11.0.0

ripgrep 11 is a new major version release of ripgrep that contains many bug
fixes, some performance improvements and a few feature enhancements. Notably,
ripgrep's user experience for binary file filtering has been improved. See the
guide's new section on binary data for more details.

In case you haven't heard of it before, ripgrep is a line-oriented search
tool that recursively searches your current directory for a regex pattern. By
default, ripgrep will respect your .gitignore and automatically skip hidden
files/directories and binary files.

This release also marks a change in ripgrep's versioning. Where as the previous
version was 0.10.0, this version is 11.0.0. Moving forward, ripgrep's
major version will be increased a few times per year. ripgrep will continue to
be conservative with respect to backwards compatibility, but may occasionally
introduce breaking changes, which will always be documented in this CHANGELOG.
See issue 1172 for a bit
more detail on why this versioning change was made.

This release increases the minimum supported Rust version from 1.28.0 to
1.34.0.

BREAKING CHANGES:

  • ripgrep has tweaked its exit status codes to be more like GNU grep's. Namely,
    if a non-fatal error occurs during a search, then ripgrep will now always
    emit a 2 exit status code, regardless of whether a match is found or not.
    Previously, ripgrep would only emit a 2 exit status code for a catastrophic
    error (e.g., regex syntax error). One exception to this is if ripgrep is run
    with -q/--quiet. In that case, if an error occurs and a match is found,
    then ripgrep will exit with a 0 exit status code.
  • Supplying the -u/--unrestricted flag three times is now equivalent to
    supplying --no-ignore --hidden --binary. Previously, -uuu was equivalent
    to --no-ignore --hidden --text. The difference is that --binary disables
    binary file filtering without potentially dumping binary data into your
    terminal. That is, rg -uuu foo should now be equivalent to grep -r foo.
  • The avx-accel feature of ripgrep has been removed since it is no longer
    necessary. All uses of AVX in ripgrep are now enabled automatically via
    runtime CPU feature detection. The simd-accel feature does remain available
    (only for enabling SIMD for transcoding), however, it does increase
    compilation times substantially at the moment.

Performance improvements:

Feature enhancements:

  • Added or improved file type filtering for Apache Thrift, ASP, Bazel, Brotli,
    BuildStream, bzip2, C, C++, Cython, gzip, Java, Make, Postscript, QML, Tex,
    XML, xz, zig and zstd.
  • FEATURE #855:
    Add --binary flag for disabling binary file filtering.
  • FEATURE #1078:
    Add --max-columns-preview flag for showing a preview of long lines.
  • FEATURE #1099:
    Add support for Brotli and Zstd to the -z/--search-zip flag.
  • FEATURE #1138:
    Add --no-ignore-dot flag for ignoring .ignore files.
  • FEATURE #1155:
    Add --auto-hybrid-regex flag for automatically falling back to PCRE2.
  • FEATURE #1159:
    ripgrep's exit status logic should now match GNU grep. See updated man page.
  • FEATURE #1164:
    Add --ignore-file-case-insensitive for case insensitive ignore globs.
  • FEATURE #1185:
    Add -I flag as a short option for the --no-filename flag.
  • FEATURE #1207:
    Add none value to -E/--encoding to forcefully disable all transcoding.
  • FEATURE da9d7204:
    Add --pcre2-version for querying showing PCRE2 version information.

Bug fixes:

  • BUG #306,
    BUG #855:
    Improve the user experience for ripgrep's binary file filtering.
  • BUG #373,
    BUG #1098:
    ** is now accepted as valid syntax anywhere in a glob.
  • BUG #916:
    ripgrep no longer hangs when searching /proc with a zombie process present.
  • BUG #1052:
    Fix bug where ripgrep could panic when transcoding UTF-16 files.
  • BUG #1055:
    Suggest -U/--multiline when a pattern contains a \n.
  • BUG #1063:
    Always strip a BOM if it's present, even for UTF-8.
  • BUG #1064:
    Fix inner literal detection that could lead to incorrect matches.
  • BUG #1079:
    Fixes a bug where the order of globs could result in missing a match.
  • BUG #1089:
    Fix another bug where ripgrep could panic when transcoding UTF-16 files.
  • BUG #1091:
    Add note about inverted flags to the man page.
  • BUG #1093:
    Fix handling of literal slashes in gitignore patterns.
  • BUG #1095:
    Fix corner cases involving the --crlf flag.
  • BUG #1101:
    Fix AsciiDoc escaping for man page output.
  • BUG #1103:
    Clarify what --encoding auto does.
  • BUG #1106:
    --files-with-matches and --files-without-match work with one file.
  • BUG #1121:
    Fix bug that was triggering Windows antimalware when using the --files
    flag.
  • BUG #1125,
    BUG #1159:
    ripgrep shouldn't panic for rg -h | rg and should emit correct exit status.
  • BUG #1144:
    Fixes a bug where line numbers could be wrong on big-endian machines.
  • BUG #1154:
    Windows files with "hidden" attribute are now treated as hidden.
  • BUG #1173:
    Fix handling of ** patterns in gitignore files.
  • BUG #1174:
    Fix handling of repeated ** patterns in gitignore files.
  • BUG #1176:
    Fix bug where -F/-x weren't applied to patterns given via -f.
  • BUG #1189:
    Document cases where ripgrep may use a lot of memory.
  • BUG #1203:
    Fix a matching bug related to the suffix literal optimization.
  • BUG 8f14cb18:
    Increase the default stack size for PCRE2's JIT.
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