I search url,they are for Linux centos,I don't know how to offline install it in ubuntu16.0.4 .
Any help will appreciated!
Method1:(no success)
- set source.list,read readme( from https://apt.postgresql.org/pub/repos/apt/dists/xenial-pgdg/9.4/)
- download deb package
- copy them to the target computer
- dpkg -i *.deb
Method2:(success)
https://techedemic.com/2014/10/01/offline-package-installs-using-dpkg-and-apt-get-ubuntudebianetc/