From owner-freebsd-questions@FreeBSD.ORG Sat Jan 7 19:10:53 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E0B916A41F for ; Sat, 7 Jan 2006 19:10:53 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0CEA243D55 for ; Sat, 7 Jan 2006 19:10:51 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id F234E5DDF; Sat, 7 Jan 2006 14:10:49 -0500 (EST) Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 71736-07; Sat, 7 Jan 2006 14:10:49 -0500 (EST) Received: from [192.168.1.3] (pool-68-161-122-227.ny325.east.verizon.net [68.161.122.227]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pi.codefab.com (Postfix) with ESMTP id 0F3845CFC; Sat, 7 Jan 2006 14:10:49 -0500 (EST) Message-ID: <43C0123D.5000909@mac.com> Date: Sat, 07 Jan 2006 14:10:53 -0500 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Luke Bakken References: <6acc6ca40601071101s10b02d5aj3177a07d651f7523@mail.gmail.com> In-Reply-To: <6acc6ca40601071101s10b02d5aj3177a07d651f7523@mail.gmail.com> X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at codefab.com Cc: freebsd-questions@freebsd.org Subject: Re: Using pkg_add to satisfy port dependencies... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Jan 2006 19:10:53 -0000 Luke Bakken wrote: > Is there a way to tell the ports system to try to fetch port > dependencies using the 'pkg_add' command rather than try to build the > dependency first from source? "pkg_add -r _port_" ought to fetch needed runtime dependencies, too? Or maybe you are looking for the "portupgrade -P" option: -P --use-packages Use packages instead of ports whenever available. portupgrade searches the local directories listed in PKG_PATH for each package to install or upgrade the current installation with, and if none is found, pkg_fetch(1) is invoked to fetch one from a remote site. If it doesn't work either, the port is used. -PP --use-packages-only Never use the port even if a package is not avail- able either locally or remotely, although you still have to keep your ports tree up-to-date so that portupgrade can check out what the latest version of each port is. -- -Chuck