How to list all the installed packages...

Jan Henrik Sylvester me at janh.de
Fri Mar 27 02:13:08 PDT 2009


Alain G. Fabry wrote:
> On Fri, Mar 27, 2009 at 09:34:00AM +0100, Jan Henrik Sylvester wrote:
>> Olivier Nicole wrote:
>>> Is there a way to show a list of all installed packages that are not
>>> required by any other package?
>> cd /var/db/pkg/ ; for i in *-* ; do if [ ! -e $i/+REQUIRED_BY ] ; then 
>> echo $i ; fi ; done

[...]

>> If you want to be able to update ports quickly, you should keep the 
>> build dependencies. Doing "make pretty-print-build-depends-list" in a 
>> ports directory gives you the build dependencies.

[...]

> How about pkg_cutleaves

Is there anything about build dependencies in cutleaves?

http://www.freebsd.org/cgi/cvsweb.cgi/ports/ports-mgmt/pkg_cutleaves/files/pkg_cutleaves?rev=1.2

I do not see it at a quick glance.

Cheers,
Jan Henrik


More information about the freebsd-questions mailing list