Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1US15x-0007T2-W2 for pgsql-pkg-debian@arkaria.postgresql.org; Tue, 16 Apr 2013 08:18:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1US15x-00034w-GT for pgsql-pkg-debian@arkaria.postgresql.org; Tue, 16 Apr 2013 08:18:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1US15w-00034q-Pa for pgsql-pkg-debian@postgresql.org; Tue, 16 Apr 2013 08:18:28 +0000 Received: from cl-2390.ham-01.de.sixxs.net ([2001:6f8:900:955::2] helo=feynman.df7cb.de) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1US15t-0006hg-Ki for pgsql-pkg-debian@postgresql.org; Tue, 16 Apr 2013 08:18:28 +0000 Received: from msgid.df7cb.de (benz.df7cb.de [IPv6:2001:6f8:10ee:e:134::2]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 84C0D69630; Tue, 16 Apr 2013 10:18:23 +0200 (CEST) Date: Tue, 16 Apr 2013 10:18:18 +0200 From: Christoph Berg To: Nicola Volpini Cc: pgsql-pkg-debian@postgresql.org Subject: Re: Syncing local repo with apt.postgresql.org (selectively add debs to prevent uncontrolled upgrades) Message-ID: <20130416081818.GA32243@msgid.df7cb.de> Mail-Followup-To: Christoph Berg , Nicola Volpini , pgsql-pkg-debian@postgresql.org References: <516BB700.7090401@kambi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <516BB700.7090401@kambi.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) X-Mailing-List: pgsql-pkg-debian List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Precedence: bulk Sender: pgsql-pkg-debian-owner@postgresql.org Re: Nicola Volpini 2013-04-15 <516BB700.7090401@kambi.com> > Hi, > > we're running multiple database machines with Ubuntu 10.04 and 12.04. The version of postgres in the official repositories is quite old, therefore we'd like to use this nice repo you provided. > We're using reprepro to mirror the official ubuntu repos and to provide an internal separate repository for our custom made packages. > We would like to make a newer version of postgres available by placing the debian packages from your repository into ours, so to have maximum control over which version gets installed in our machines and avoid a new version of postgres from being available at every synch. Since the packages and the dependencies are many and I don't want to take the risk of missing some (by manually fetching each package from you repo), is there any script that downloads the main debian package and its dependencies? > I'm no expert of repositories in general or of reprepro, so I'm open to any suggestion. Maybe this could be done in a better, automated way with reprepro itself :) Hi Nicola, You are probably interested in a specific version of postgresql, say postgresql-9.1. In that case, I'd suggest pulling all binary packages built by this source package (have a look at "apt-cache showsrc postgresql-9.1"). You'll also need "postgreql-common" and "postgresql-client-common" (built from the "postgresql-common" source). (libpq5 (and friends) in the "main" repository are those built by postgresql-9.2, these are fine to use even with postgresql-9.1.) reprepro has built-in machinery to pull packages from other repositories, see the "update" and "pull" commands. I forgot what the difference between these is, but it looks like "update" would automatically sync one distribution from a remote repo to a local distribution, while "pull" allows you to pull specific packages. You should probably look into setting up a pull from apt.postgresql.org. I remember doing that once, it wants a file with a list of packages to sync over. Shouldn't be hard to do. The plethora of other packages are modules for specific data types and the like, you won't need these. The dependencies between the packages should be correct in the sense that if you missed pulling one, apt will tell you, so if you won't run into hidden problems. Christoph -- cb@df7cb.de | http://www.df7cb.de/ -- Sent via pgsql-pkg-debian mailing list (pgsql-pkg-debian@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-pkg-debian