如何用apt安装postgresql-client的特定补丁版本?

时间:2017-03-09 00:32:07

标签: postgresql apt

如果我运行以下命令,它将安装版本9.6.2,但我想要9.6.1:

apt-get install postgresql-client-9.6

这可能吗?

更新1

我试图在Dockerfile这样做:

FROM ruby:2.2.5

# Add source for Postgres 9.6
RUN echo 'deb http://apt.postgresql.org/pub/repos/apt/ jessie-pgdg main' > /etc/apt/sources.list.d/postgresql.list
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -

RUN apt-get update -qq && apt-get install -y build-essential

# for postgres
RUN apt-get install -y libpq-dev postgresql-client-9.6

0 个答案:

没有答案