I have tried to install pg_dump
as part of installation of postgres-client
, however it does not include pg_dump
.
Can pg_dump
be installed without a full installation of postgres on Alpine Linux?
I have tried to install pg_dump
as part of installation of postgres-client
, however it does not include pg_dump
.
Can pg_dump
be installed without a full installation of postgres on Alpine Linux?
No - to install pg_dump
and associated utilities, you'll need to run apk add postgresql
, which will install the full PostgreSQL suite.
The installed size is currently 12.1mb (for v9.6.0-r1) vs just 451kb for postgresql-client
, so it's definitely bigger. If you're using Alpine in Docker, that might not be a big deal. If you're using it in an embedded device where size matters, you could simply copy over pg_dump
or whatever else you need.
Edit: This is no longer true. apk add --no-cache postgresql-client
is sufficient.
apk add --no-cache postgresql-client
is now enough for the pg_dump binary –
Witham The answer to this question is yes.
postgresql-client, 2.86 MB installed, does contain the pg_dump
command
postgresql-dev, 9.05 MB MB installed, does not contain pg_dump
but is required by psycopg2
.
postgresql, 15.02 MB installed does not contain pg_dump
© 2022 - 2024 — McMap. All rights reserved.
apk add postgresql-client
installspg_dump
– Inedible