title: how to install latest version of prometheus/promtool in ubuntu?
body: <p>I downloaded my prometheus version is 2.3.2</p>
  
  <pre><code>wget https://github.com/prometheus/prometheus/releases/download/v2.3.2/prometheus-2.3.2.linux-amd64.tar.gz
  </code></pre>
  
  <p>untared and prometheus already running as service.</p>
  
  <p>I want to verify my Prometheus alert manager rule using promtool.
  created one rule from below blog.</p>
  
  <p><a href="https://petargitnik.github.io/blog/2018/01/04/how-to-write-rules-for-prometheus" rel="noreferrer">https://petargitnik.github.io/blog/2018/01/04/how-to-write-rules-for-prometheus</a></p>
  
  <p>when I run the 
  promtool check rules /etc/prometheus/prometheus.rules.yml</p>
  
  <p>it says, Promtheus not installed, so installed again using 
  apt get prometheus</p>
  
  <p>but this is installed older verion of promtool, here is version details:</p>
  
  <pre><code>    root@UTVA-kafka-msg-size-2mb-02509:/home/ubuntu# promtool version
  prometheus, version 0.16.2+ds (branch: debian/sid, revision: 0.16.2+ds-1ubuntu1)
  
  build user:       pkg-go-maintainers@lists.alioth.debian.org
    build date:       20160408-04:15:29
    go version:       go1.6
  </code></pre>
  
  <p>Prometheus version 2 using yml file for rules, older usign some different one, so my promtool check-rules  is failing.</p>
  
  <p>Can anyone suggest how to upgrade latest promtool?</p>
  
  <p>Thanks.</p>