.\" $Id$ .\" .Dd July 27, 2001 .Dt PKG_GLOB 1 .Os FreeBSD .Sh NAME .Nm pkg_glob .Nd a package glob expander with wildcards and dependency recursion support .Sh SYNOPSIS .Nm .Op Fl haOqrR .Op Fl x Ar pkgname_glob .Op Ar pkgname_glob ... .Sh DESCRIPTION The .Nm command lists the installed packages matching given package globs, optionally recursing through dependencies. The output list is sorted in alphabetical order. Use .Xr pkg_sort 1 to sort them in dependency order. (e.g. .Li "pkg_glob -a | pkg_sort" ) .Pp Before reading these instructions, you must understand that a port/package can have the following two types of related ports/packages: .Bl -tag -width "dependent" -compact .It required Ports/packages that a port/package needs for it to be built and/or run. Port Makefiles refer to this type of ports/packages using the .Dv BUILD_DEPENDS and .Dv RUN_DEPENDS macros, respectively. .It dependent Ports/packages that need this port/package. .El .Sh OPTIONS The following command line arguments are supported: .Pp .Bl -tag -width "--upward-recursive" -compact .It Ar pkgname_glob Specify one of these: a full pkgname, a pkgname without version, or a shell glob pattern to match against pkgnames or their origins in which you can use wildcards .Sq * , .Sq \&? , and .Sq [..] , an extended regular expression preceded by a colon .Sq \&: to match against pkgnames or their origins, or a date range specification preceded by either .Sq < or .Sq > . .Pp A date range specification must be in the following form: .Pp .D1 {<|<=|>=|>}{date|pkgname_glob} .Pp Which selects packages that had been installed before or after the date or the package specified. It is recommended to use the ISO 8601 format to specify a date, while various formats are accepted. .Pp Here are some pattern examples: .Pp .Bl -tag -width "':sh-[^-]+$'" -compact -nested .It tcl-8.2.3 Specifically .Sq tcl-8.2.3 . .Pp .It tcl Whatever versions of .Sq tcl installed. This would not match .Sq tcl-sql or .Sq tcl-thread . .Pp .It 'ja-*' Everything with a .Sq ja- prefix. .Pp .It '*gnome*' Everything having .Sq gnome in the name. .Pp .It '*sh' This would not match anything since the version part cannot be omitted if a pattern contains wildcards. .Pp .It 'lang/* Everything installed from the category .Sq lang . .Pp .It :'sh-[^-]+$' Everything which name ends with .Sq sh . .Pp .It :'(?i)sql' Everything having .Sq sql in the name, ignoring the case. .Pp .It '>=2001-09-20 08:00' Everything that was installed after 2001-09-20 08:00:00 (local time). .Pp .It '