title: Ubuntu16.0.4 Postgresql9.4 offline install
body: <p>I search url,they are for Linux centos,I don't know how to offline install it in ubuntu16.0.4 .</p>
  
  <p>Any help will appreciated！</p>
  
  <p>Method1：(no success)</p>
  
  <ol>
  <li>set source.list,read readme( from <a href="https://apt.postgresql.org/pub/repos/apt/dists/xenial-pgdg/9.4/" rel="nofollow noreferrer">https://apt.postgresql.org/pub/repos/apt/dists/xenial-pgdg/9.4/</a>)</li>
  <li>download deb package</li>
  <li>copy them to the target computer</li>
  <li>dpkg -i *.deb</li>
  </ol>
  
  <p>Method2:(success)</p>
  
  <p><a href="https://techedemic.com/2014/10/01/offline-package-installs-using-dpkg-and-apt-get-ubuntudebianetc/" rel="nofollow noreferrer">https://techedemic.com/2014/10/01/offline-package-installs-using-dpkg-and-apt-get-ubuntudebianetc/</a></p>