Link to home
Start Free TrialLog in
Avatar of Jasmin shahrzad
Jasmin shahrzad

asked on

install postgresql ?

how to install postgres 10 on lxd alpine container?
apk add postgresql just add the latest version and i need a older version. i cant see version number on apk list | grep postgres not showing older version.
ASKER CERTIFIED SOLUTION
Avatar of noci
noci

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jasmin shahrzad
Jasmin shahrzad

ASKER

yes it was. i rollback to alpine 3.8 then postgres 10 is appear. it look like in newer alpine need to run new postgres.
or download source and install .... .
Doing this is fairly easy.

1) Using Alpine, you must downgrade as you've figured out.

2) With Ubuntu, you'l spin up a Bionic container, rather than Focal, as Bionic appears to provide last support for PostgreSQL-10.

3) You can also, just install whatever Distro you like into an LXD container, then follow these instructions...

http://www.linuxfromscratch.org/blfs/view/8.2/server/postgresql.html for building v10 from source.