From owner-freebsd-questions Mon Jun 25 6:33:53 2001 Delivered-To: freebsd-questions@freebsd.org Received: from raffles-it.com (raffles.demon.co.uk [158.152.17.201]) by hub.freebsd.org (Postfix) with ESMTP id 9444237B405 for ; Mon, 25 Jun 2001 06:33:40 -0700 (PDT) (envelope-from dpd@raffles-it.com) Received: from arrow.lan.raffles-it.com (arrow.lan.raffles-it.com [192.168.100.51]) by raffles-it.com (8.11.4/8.11.4) with ESMTP id f5PDDBG74986; Mon, 25 Jun 2001 14:13:11 +0100 (BST) (envelope-from dpd@raffles-it.com) Received: from arrow.lan.raffles-it.com (localhost [127.0.0.1]) by arrow.lan.raffles-it.com (8.11.4/8.11.4) with ESMTP id f5PDDAk04929; Mon, 25 Jun 2001 14:13:10 +0100 (BST) (envelope-from dpd@lan.raffles-it.com) Message-Id: <200106251313.f5PDDAk04929@arrow.lan.raffles-it.com> X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: Erik Trulsson Cc: Cynic , freebsd-questions@FreeBSD.ORG, dpd@arrow.lan.raffles-it.com Subject: Re: pkg_info - get only names of installed packages In-Reply-To: Message from Erik Trulsson of "Mon, 25 Jun 2001 02:06:35 +0200." <20010625020634.A66928@student.uu.se> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1403872542P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Mon, 25 Jun 2001 14:13:10 +0100 From: David Dooley 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 --==_Exmh_1403872542P Content-Type: text/plain; charset=us-ascii > 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 --==_Exmh_1403872542P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: Exmh version 2.3.1 01/18/2001 iD8DBQE7NzjmiTCzTVFwd6wRArFmAJ94bZ3gVI9tWpVc+uJuF+k+YWoyBACeOk+6 QtKEJMZELV9HG0Nqd1/odlo= =zpFw -----END PGP SIGNATURE----- --==_Exmh_1403872542P-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message