.Dd Feb 25, 2021 .Dt cpt-list 1 .Sh NAME .Nm cpt-list .Nd list packages .Sh SYNOPSIS .Nm .Op Fl c .Ar pkg... .Nm .Fl C .Ar pkg true-statement false-statement .Sh DESCRIPTION .Nm can be used to list all packages or check if the given package is installed on the system. Without any arguments supplied, .Nm will list all packages installed on the system. Otherwise, it will check and list the given packages. If any of the given packages are not installed on the system, .Nm will exit with an error. However, .Fl c and .Fl -check flags can be used in order to change the behaviour of the utility: .Bl -tag -width 12n .It Fl c , -current Assumes that the current directory is a package and will use it instead of arguments. .It Fl C , -check Ar package true_statement false_statement Checks whether the .Em package is installed on the system and returns the string for .Em true_statement if it is installed and the string for .Em false_statement if it isn't. This function is mostly useful for being called inside packages for optional dependencies. .El .Sh AUTHOR .An Cem Keylan Aq Mt cem@ckyln.com .Sh LICENSE See LICENSE for copyright information. .Sh SEE ALSO .Xr cpt 1