Use binary portable version from: https://www.enterprisedb.com/download-postgresql-binaries
Working on enterprise laptop means you don't have full root access to run apt-get install
What if you just want to try out postgres quickly on your laptop?
What if you just need pgsql client to run sql and don't want to install all server side service to you laptop?
Pretty simple, just download the binary from https://www.enterprisedb.com/download-postgresql-binaries then unzip it to a folder.
If all you need is psql client then you're ready to go. Just run
If you want to run postgres server at local?
Create an empty folder (ex: /data)
Init database ./initdb -D /data Run postgres ./bin/postgres -D /data Create database ./bin/createdb mydb Connect with psql ./bin/psql mydb
In case you're running a specific Debian which does not have pre-built binary. Things are more difficult.
You can download the source code and compile it by yourself.
However, in many case, the compiler asks to install more compiling package which returns root permission.