From owner-freebsd-questions@FreeBSD.ORG Mon Dec 15 10:03:43 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DF26C7FE for ; Mon, 15 Dec 2014 10:03:43 +0000 (UTC) Received: from smtp-4-out.integrity.hu (smtp-4-out.integrity.hu [212.52.165.214]) by mx1.freebsd.org (Postfix) with ESMTP id 9C537347 for ; Mon, 15 Dec 2014 10:03:42 +0000 (UTC) Received: from webmail.integrity.hu (mail-fe-1.integrity.hu [10.1.64.120]) by mail-smtp.integrity.hu (Postfix) with ESMTPA id 75AC040269 for ; Mon, 15 Dec 2014 11:03:34 +0100 (CET) Received: from n6K7ZNFaLCt5V+YrI2bxhTPC+Ff7DehZ by webmail.integrity.hu with HTTP (HTTP/1.1 POST); Mon, 15 Dec 2014 11:03:34 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Mon, 15 Dec 2014 11:03:34 +0100 From: gabor@zahemszky.hu To: Subject: pkg override =?UTF-8?Q?HOW=3F?= Message-ID: <29c3e5df6a2337ffb37c724a46b9b66c@zahemszky.hu> X-Sender: gabor@zahemszky.hu User-Agent: Roundcube Webmail/0.8.4 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2014 10:03:44 -0000 Hi! In man pkg-repository, there is a description, on how to use more repositories, and how to override the default precedence. The critical steps are: 1) install the package from the preferred repo with: pkg install -r PreferredRepoName PACKAGEname 2) and after installation, make an annotation on that package with: pkg annotate -A PACKAGEname repository PreferredRepoName There are at least two problems with it: a) The annotation halted with an error message: "Cannot add annotation" Because the package HAS the correct "repository" annotation - and every package has repository annotations - the packages, which was installed from remote has the "FreeBSD" tag, and the local-sourced package has the local-repo-name.) b) The bigger problem is that it doesn't work. It means: I have a local package (mail/faces), which has a default GTK-1.2 and GLIB-1.2 dependency. I don't need them (but faces), so I made a local package. Made the above steps, but the pkg update / upgrade commands updated it from the main FreeBSD repository. So what do I need to do, to make the package from my local repo is the preferred package? Thanks, Zahemszky, Gábor < Gabor at Zahemszky dot HU >