From owner-freebsd-questions@FreeBSD.ORG Mon Oct 17 23:06:31 2005 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 3E76416A41F for ; Mon, 17 Oct 2005 23:06:31 +0000 (GMT) (envelope-from kdk@daleco.biz) Received: from ezekiel.daleco.biz (southernuniform.com [66.76.92.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC74B43D46 for ; Mon, 17 Oct 2005 23:06:30 +0000 (GMT) (envelope-from kdk@daleco.biz) Received: from [192.168.2.2] ([69.27.149.254]) by ezekiel.daleco.biz (8.13.1/8.13.1) with ESMTP id j9HN6Sg3033717; Mon, 17 Oct 2005 18:06:28 -0500 (CDT) (envelope-from kdk@daleco.biz) Message-ID: <43542E6F.6030102@daleco.biz> Date: Mon, 17 Oct 2005 18:06:23 -0500 From: Kevin Kinsey User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.11) Gecko/20050923 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Emil Khatib References: <44u0ffre2t.fsf@be-well.ilk.org> In-Reply-To: <44u0ffre2t.fsf@be-well.ilk.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Show package 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: Mon, 17 Oct 2005 23:06:31 -0000 Lowell Gilbert wrote: >Emil Khatib writes: > > >>I'm connected to the Internet through a very slow connection, so if I >>want to download packages/ports, I need to get to a computer with a >>faster connection. The problem is: all the computers I can access are >>using Windows. So I need to get all the dependencies list of a package >>(just like I would do with make fetch-recursive-list when dealing with >>ports). I've tried doing something like pkg_add -rn xxx but it starts >>fetching the package. >>I've looked in all the manuals but found nothing that helps. >>How can I get the dependencies list of a package before downloading it? >>Any help appreciated >> >> > >According to "man ports", there are targets for this: >"pretty-print-run-depends-list, pretty-print-build-depends-list" > So, to explain in more precise terms: 1. Change to the directory of the desired port you wish to install. # cd /usr/ports/security/nmap 2. Use the "target" as the argument to the make(1) command: # make pretty-print-run-depends-list ... and you get a listing of runtime dependencies for the port: This port requires package(s) "pcre-6.4" to run It may be worth noting that "make search" in the /usr/ports directory also has this information: # cd /usr/ports && make search name=nmap Port: nmap-3.93 Path: /usr/ports/security/nmap Info: Port scanning utility for large networks Maint: daniel@roe.ch B-deps: gettext-0.14.5 gmake-3.80_2 libiconv-1.9.2_1 pcre-6.4 R-deps: pcre-6.4 WWW: http://www.insecure.org/nmap/ ---Kevin Kinsey