Lately, I have come to know of a command line search utility called
ripgrep, coded in
rust, that is capable of faster code searches (at least for my use cases) than
ag. So I got interested in building the latest versions of
rg (ripgrep binary name) directly from its github master branch rather than waiting for its release binaries.
So came the need to install the
rust toolchain on my machine. Luckily, installing that was super easy; here are the steps:
Navigate to https://www.rustup.rs in your web browser.
Based on your OS, it will provide you the install instructions. For RHEL 6.6, it asked me to run this
curl https://sh.rustup.rs -sSf | sh
Once I ran that command, I was faced with the below prompt:
Everything looked good, except that I did not want the script to modify the
PATHvariable for me. So I went with the 2) Customize .. option and disabled that. The main thing to make note of was that all the binaries would be installed in
So after running the above, I updated the
~/.cargo/binin my shell config.
That’s it! You can then verify the installation by doing a version check.
You can learn more about
rustup from this
- Normally I wouldn’t run a stray
curl .. | shcommand, but I made an exception for this one. [return]