4 ms·
It's simple to install ripgrep on pretty much any Linux because I distribute statically compiled binaries: $ curl -LO 'https://github.com/BurntSushi/ripgre
by burntsushi 9y ago
It's simple to install ripgrep on pretty much any Linux because I distribute statically compiled binaries:
$ curl -LO 'https://github.com/BurntSushi/ripgrep/releases/download/0.5.2/ripgrep-0.5.2-x86_64-unknown-linux-musl.tar.gz'
$ tar xf ripgrep-0.5.2-*.tar.gz
$ cp ripgrep-0.5.2-*/rg $HOME/bin/rg
If you're not a fan of this approach (downloading random binaries and slapping them into your $HOME/bin), then your other choice is to build from source. I don't use Ubuntu, but install Rust[1] and then building ripgrep is easy:
$ git clone git://github.com/BurntSushi/ripgrep
$ cd ripgrep
$ cargo build --release
$ ./target/release/rg -V
ripgrep 0.5.2
And yes, it would be great to get ripgrep packaged into Ubuntu.[2] There seems to be an up-to-date PPA here.[3]
[1] - https://www.rust-lang.org/en-US/install.html https://www.rust-lang.org/en-US/install.html
[2] - https://github.com/BurntSushi/ripgrep/issues/10 https://github.com/BurntSushi/ripgrep/issues/10
[3] - https://launchpad.net/~x4121/+archive/ubuntu/ripgrep https://launchpad.net/~x4121/+archive/ubuntu/ripgrep