From owner-freebsd-questions@FreeBSD.ORG Mon Dec 2 15:17:45 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5348F70E for ; Mon, 2 Dec 2013 15:17:45 +0000 (UTC) Received: from uk1rly2283.eechost.net (uk1rly2283-a.eechost.net [217.69.47.231]) by mx1.freebsd.org (Postfix) with ESMTP id 199211BD4 for ; Mon, 2 Dec 2013 15:17:44 +0000 (UTC) Received: from [31.186.37.179] (helo=smtp.marelmo.com) by uk1rly2283.eechost.net with esmtpa (Exim 4.72) (envelope-from ) id 1VnV9Z-0006QI-7S; Mon, 02 Dec 2013 15:11:17 +0000 Received: from [192.168.63.1] (helo=steve.marelmo.com) by smtp.marelmo.com with smtp (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1VnVFm-00049A-LL; Mon, 02 Dec 2013 15:17:42 +0000 Date: Mon, 2 Dec 2013 15:17:42 +0000 From: Steve O'Hara-Smith To: Matthew Seaman Subject: Re: Multiple pkg repositories Message-Id: <20131202151742.30be3ddf0f3d944e50200817@sohara.org> In-Reply-To: <529C9154.40606@infracaninophile.co.uk> References: <20131202104355.37e2ca24f4068e1d86000134@sohara.org> <529C9154.40606@infracaninophile.co.uk> X-Mailer: Sylpheed 3.3.0 (GTK+ 2.24.19; amd64-portbld-freebsd9.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Auth-Info: 15567@permanet.ie (plain) Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Dec 2013 15:17:45 -0000 On Mon, 02 Dec 2013 13:55:32 +0000 Matthew Seaman wrote: > On 12/02/13 10:43, Steve O'Hara-Smith wrote: > > Hi, > > > > I see with the pkg-1.2 there is support for using multiple > > repositories. What is not clear is how to control the search order in > > these repositories. I'd like to arrange that my local repository is > > searched first with a fallback to the official repository, primarily so > > that I can avoid compiling some of the monsters like libreoffice, > > firefox etc. while still having packages with my selected options and > > custom patches where I want them. > > > > Anyone know if it's possible to set this up reliably ? > > Repositories are searched in order of the names of the .conf files in > /usr/local/etc/pkg/repos -- not sure how adding /etc/pkg/FreeBSD.conf > into that mix affects things though. However you can easily test as > it's also the order that repositories are listed in the 'pkg -vv' output. Thank you. > You should also be aware of using 'pkg annotate' to force a package to > be installed from a specific repository. See the section 'WORKING WITH > MULTIPLE REPOSITORIES' in pkg-repository(5). Ah, I'd missed that man page - useful. After reading it I think you're right that pkg annotate is the way to go to get reliable behaviour, that feature of always pulling the latest version no matter which repository it appears in may spoil my game otherwise. -- Steve O'Hara-Smith