title: How can I install using cargo when offline?
body: <p>I want to use bat and lsd in my work area.</p>
  <p>But my company's Centos 6 Linux server is disconnected from the internet for security.</p>
  <p>But we can do it that is install something that is helping to work.</p>
  <pre class="lang-none prettyprint-override"><code>&gt; cargo install --locked bat
      Updating crates.io index
  warning: spurious network error (2 tries remaining): failed to resolve address for github.com: Temporary failure in name resolution; class=Net (12)
  warning: spurious network error (1 tries remaining): failed to resolve address for github.com: Temporary failure in name resolution; class=Net (12)
  error: failed to fetch `https://github.com/rust-lang/crates.io-index`
  
  Caused by:
    failed to resolve address for github.com: Temporary failure in name resolution; class=Net (12)
  </code></pre>
  <p>How can I do that?</p>