title: How can we completely remove Rust installed by Ubuntu?
body: <p>I want to update my Rust to latest but when I searched for <code>rustup</code> it was not showing up in my system <code>rustup: command not found</code>. I tried to install rustup using <code>curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh</code>. It gave this warning.</p>
  <pre class="lang-none prettyprint-override"><code>warning: rustup should not be installed alongside Rust. Please uninstall your existing Rust first.
  warning: Otherwise you may have confusion unless you are careful with your PATH
  warning: If you are sure that you want both rustup and your already installed Rust
  warning: then please reply `y' or `yes' or set RUSTUP_INIT_SKIP_PATH_CHECK to yes
  </code></pre>
  <p>I tried to remove <code>rustc</code> with <code>sudo apt remove rustc</code> but it returns</p>
  <pre class="lang-none prettyprint-override"><code>Package 'rustc' is not installed, so not removed
  </code></pre>
  <p>although I can access <code>rustc</code> from terminal. My current <code>rustc</code> and <code>cargo</code> version is 1.47.0.</p>