How to list all packages in a given category?
Hi all, Apologies in advance if this is a stupid question, but I couldn't find anything relevant in the man pages or with Google: How can I list all the packages I have installed in a certain category? I'm thinking it should be something like 'pkg_info -C games', but AFAICT pkg_info doesn't have any such option like that. TIA, -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to list all packages in a given category?
On Sun, Dec 14, 2003 at 03:27:47PM -0800, Chris Pressey wrote: Hi all, Apologies in advance if this is a stupid question, but I couldn't find anything relevant in the man pages or with Google: How can I list all the packages I have installed in a certain category? I'm thinking it should be something like 'pkg_info -C games', but AFAICT pkg_info doesn't have any such option like that. pkg_info -o '*' | grep ^games hth Gautam ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to list all packages in a given category?
On Sun, Dec 14, 2003 at 03:27:47PM -0800, Chris Pressey wrote: Apologies in advance if this is a stupid question, but I couldn't find anything relevant in the man pages or with Google: mail list archives are a good bet too (MARC for example) :P How can I list all the packages I have installed in a certain category? pkg_info -ao will list all packages including the origin path of the port (the part of the ports tree it was originally installed from), so as a hack you could do something like: pkg_info -ao | grep -B 3 net to list all packages in the 'net' category. With a bit of scripting you could even make it a bit more readable. the -O option is close but a bit awkward: [23:40:45] [EMAIL PROTECTED] /root# pkg_info -O databases/mysql323-client The following installed package(s) has databases/mysql323-client origin: mysql-client-3.23.58 unfortunately it doesn't let you do '-O databases' alone. -- Jez Hancock - System Administrator / PHP Developer http://munk.nu/ http://jez.hancock-family.com/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]