From owner-freebsd-questions@FreeBSD.ORG Fri Jan 5 22:25:49 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7CF6B16A416 for ; Fri, 5 Jan 2007 22:25:49 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id 2B80713C458 for ; Fri, 5 Jan 2007 22:25:48 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.6/8.13.8) id l05MOjxQ030787; Fri, 5 Jan 2007 16:24:45 -0600 (CST) (envelope-from dan) Date: Fri, 5 Jan 2007 16:24:45 -0600 From: Dan Nelson To: "Michael P. Soulier" Message-ID: <20070105222445.GD92161@dan.emsphone.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 6.2-PRERELEASE X-message-flag: Outlook Error User-Agent: Mutt/1.5.13 (2006-08-11) Cc: FreeBSD Questions Subject: Re: tracking port requires 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: Fri, 05 Jan 2007 22:25:49 -0000 In the last episode (Jan 05), Michael P. Soulier said: > I'm trying to figure out where ports keep their dependency > information, and the best way to parse it? On a Linux rpm-based > system, I can do the following: The dependencies themselves are stored as @pkgdep lines in the /var/db/pkg/packagename/+CONTENTS file. The reverse link is stored in /var/db/pkg/packagename/+REQUIRED_BY . You can list the dependencies with the "pkg_info -r packagename" command, and the packages that require a package with "pkg_info -R packagename". -- Dan Nelson dnelson@allantgroup.com