News for hackers. Stuff that matters.
Re:Feature comparison of ack, ag, git-grep, GNU grep and rip... by satish-setty on Monday January 08, 2018 @01:42PM (#16098782)
Seems everybody here has switched to rg but I haven't because it's not available in Debian repos (yet) unlike ack/ag. So, do such folks use Arch or just download a pre-built binary ? How about updating rg when a new version is out ?
Re:Feature comparison of ack, ag, git-grep, GNU grep and rip... by cesarb on Monday January 08, 2018 @02:23PM (#16099347)
The easiest way: first, install rust and cargo, either through your distribution, or thorough rustup if your distribution doesn't have it yet. Then run "cargo install -f ripgrep". It'll download the source code, build, and install to ~/.cargo/bin, which rustup adds to $PATH for you by default.

Edit: the "-f" in the "cargo install" command is for updating; without the -f, it refuses to install over an already installed version. The first time you install, you can omit the -f.

Re:Feature comparison of ack, ag, git-grep, GNU grep and rip... by burntsushi on Monday January 08, 2018 @03:36PM (#16100241)
Note that if you install Rust through Debian, it likely won't be new enough to compile the latest version of ripgrep. I believe Debian packages Rust 1.14, and the last version of ripgrep to work on Rust 1.14 was 0.5.2. So, `cargo install --vers 0.5.2 ripgrep` might be what you want on Debian.
Re:Feature comparison of ack, ag, git-grep, GNU grep and rip... by glandium on Tuesday January 09, 2018 @12:38AM (#16103881)
Debian stable has 1.14, but Debian testing has 1.22.1.
Re:Feature comparison of ack, ag, git-grep, GNU grep and rip... by sedachv on Monday January 08, 2018 @04:02PM (#16100530)
rg has been in OpenBSD packages since 6.1