From owner-freebsd-questions Mon Jun 25 22:42: 3 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mtiwmhc24.worldnet.att.net (mtiwmhc24.worldnet.att.net [204.127.131.49]) by hub.freebsd.org (Postfix) with ESMTP id 9E2E937B401 for ; Mon, 25 Jun 2001 22:41:59 -0700 (PDT) (envelope-from parv@worldnet.att.net) Received: from worldnet.att.net ([32.101.235.214]) by mtiwmhc24.worldnet.att.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20010626054153.HPTC3707.mtiwmhc24.worldnet.att.net@worldnet.att.net>; Tue, 26 Jun 2001 05:41:53 +0000 Received: by worldnet.att.net (Postfix, from userid 1001) id AE95519313; Tue, 26 Jun 2001 01:42:47 -0400 (EDT) Date: Tue, 26 Jun 2001 01:42:47 -0400 From: parv To: David Dooley Cc: Erik Trulsson , Cynic , freebsd-questions@FreeBSD.ORG, dpd@arrow.lan.raffles-it.com Subject: Re: pkg_info - get only names of installed packages Message-ID: <20010626014247.A535@moo.holy.cow> Mail-Followup-To: David Dooley , Erik Trulsson , Cynic , freebsd-questions@FreeBSD.ORG, dpd@arrow.lan.raffles-it.com References: <200106251313.f5PDDAk04929@arrow.lan.raffles-it.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200106251313.f5PDDAk04929@arrow.lan.raffles-it.com>; from dpd@raffles-it.com on Mon, Jun 25, 2001 at 02:13:10PM +0100 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG so, David Dooley shared this in my lifetime... > > On Mon, Jun 25, 2001 at 01:36:22AM +0200, Cynic wrote: > > > Hi there, > > > > > > yes, I've read man pkg_info, but it seems like there's > > > no (easy) way to get a list of just the names of installed > > > packages. > > > > > > What is the pkg_info equivalent of rpm -qa ? > > > > There doesn't seem to be an equivalent in pkg_info but you can get the > > same effect with: > > > > pkg_info | cut -f 1 -d " " > > > > > You might also try > > pkg_info | awk '{print $1}' > > It produces exactly the same result > amazing, nobody suggest this so far... # /bin/ls /var/db/pkg -- so, do you like word games or scrabble? - parv To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message