<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>rust on
A Scripter's Notes</title><link>https://scripter.co/categories/rust/</link><description>Recent content in rust
on A Scripter's Notes</description><language>en-us</language><managingEditor>kaushal.modi@gmail.com (Kaushal Modi)</managingEditor><webMaster>kaushal.modi@gmail.com (Kaushal Modi)</webMaster><lastBuildDate>Wed, 22 Apr 2026 08:24:58 -0400</lastBuildDate><generator>Hugo -- gohugo.io</generator><docs>https://validator.w3.org/feed/docs/rss2.html</docs><atom:link href="https://scripter.co/categories/rust/index.xml" rel="self" type="application/rss+xml"/><item><title>Installing rust toolchain</title><link>https://scripter.co/installing-rust-toolchain/</link><description>&lt;p>Lately, I have come to know of a command line search utility called [&lt;code>ripgrep&lt;/code>][3], coded in &lt;code>rust&lt;/code>, that is capable of faster code searches (at least for my use cases) than &lt;code>grep&lt;/code> or [&lt;code>ag&lt;/code>][4]. So I got interested in building the latest versions of &lt;code>rg&lt;/code> (&lt;em>ripgrep&lt;/em> binary name) directly from its github &lt;em>master&lt;/em> branch rather than waiting for its [release binaries][5].&lt;/p>
&lt;p>So came the need to install the &lt;code>rust&lt;/code> toolchain on my machine. Luckily, installing that was super easy; here are the steps:&lt;/p>
&lt;ol>
&lt;li>
&lt;p>Navigate to &lt;a href="https://www.rustup.rs">https://www.rustup.rs&lt;/a> in your web browser.&lt;/p>
&lt;ul>
&lt;li>
&lt;p>Based on your OS, it will provide you the install instructions. For RHEL 6.6, it asked me to run this &lt;code>curl&lt;/code> command&lt;sup id="fnref:1">&lt;a href="#fn:1" class="footnote-ref" role="doc-noteref">1&lt;/a>&lt;/sup>:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">curl https://sh.rustup.rs -sSf &lt;span class="p">|&lt;/span> sh
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>
&lt;p>Once I ran that command, I was faced with the below prompt:&lt;/p>
&lt;p>![Outcome of running the curl .. | sh command][1]&lt;/p>
&lt;p>Everything looked good, except that I did not want the script to modify the &lt;code>PATH&lt;/code> variable for me. So I went with the &lt;em>2) Customize ..&lt;/em> option and disabled that. The main thing to make note of was that all the binaries would be installed in &lt;code>~/.cargo/bin&lt;/code>.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>So after running the above, I updated the &lt;code>PATH&lt;/code> to include &lt;code>~/.cargo/bin&lt;/code> in my shell config.&lt;/p>
&lt;/li>
&lt;/ol>
&lt;p>That&amp;rsquo;s it! You can then verify the installation by doing a version check.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">rustc --version
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;hr>
&lt;p>You can learn more about &lt;code>rustup&lt;/code> from this [&lt;code>README.md&lt;/code>][2].&lt;/p>
&lt;div class="footnotes" role="doc-endnotes">
&lt;hr>
&lt;ol>
&lt;li id="fn:1">
&lt;p>&lt;em>Normally I wouldn&amp;rsquo;t run a stray &lt;code>curl .. | sh&lt;/code> command, but I made an exception for this one.&lt;/em>
[1]: /images/installing_rust_toolchain__curl_sh.png
[2]: &lt;a href="https://github.com/rust-lang-nursery/rustup.rs/blob/master/README.md">https://github.com/rust-lang-nursery/rustup.rs/blob/master/README.md&lt;/a>
[3]: &lt;a href="https://github.com/BurntSushi/ripgrep">https://github.com/BurntSushi/ripgrep&lt;/a>
[4]: &lt;a href="https://github.com/ggreer/the_silver_searcher">https://github.com/ggreer/the_silver_searcher&lt;/a>
[5]: &lt;a href="https://github.com/BurntSushi/ripgrep/releases">https://github.com/BurntSushi/ripgrep/releases&lt;/a>&amp;#160;&lt;a href="#fnref:1" class="footnote-backref" role="doc-backlink">&amp;#x21a9;&amp;#xfe0e;&lt;/a>&lt;/p>
&lt;/li>
&lt;/ol>
&lt;/div></description><category domain="https://scripter.co/categories/rust">rust</category><guid>https://scripter.co/installing-rust-toolchain/</guid><pubDate>Thu, 12 Jan 2017 10:29:28 -0500</pubDate></item></channel></rss>