From owner-freebsd-questions@FreeBSD.ORG Sun Dec 14 15:44:52 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2080C16A4CE for ; Sun, 14 Dec 2003 15:44:52 -0800 (PST) Received: from munk.nu (mail.munk.nu [213.152.51.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23AB743D31 for ; Sun, 14 Dec 2003 15:44:50 -0800 (PST) (envelope-from munk@munk.nu) Received: from munk by munk.nu with local (Exim 4.24; FreeBSD) id 1AVfum-000MYU-Pb; Sun, 14 Dec 2003 23:44:44 +0000 Date: Sun, 14 Dec 2003 23:44:44 +0000 From: Jez Hancock To: Chris Pressey Message-ID: <20031214234444.GA86125@users.munk.nu> Mail-Followup-To: Chris Pressey , FreeBSD Questions List References: <20031214152747.6a94c98d.cpressey@catseye.mine.nu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031214152747.6a94c98d.cpressey@catseye.mine.nu> User-Agent: Mutt/1.4.1i cc: FreeBSD Questions List Subject: Re: How to list all packages in a given category? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Dec 2003 23:44:52 -0000 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] root@users /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/