Show package dependencies
Kevin Kinsey
kdk at daleco.biz
Mon Oct 17 16:06:31 PDT 2005
Lowell Gilbert wrote:
>Emil Khatib <fenomenoxp2 at gmail.com> 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 at 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
More information about the freebsd-questions
mailing list