Date: Mon, 25 Jun 2001 14:13:10 +0100 From: David Dooley <dpd@raffles-it.com> To: Erik Trulsson <ertr1013@student.uu.se> Cc: Cynic <cynic@mail.cz>, freebsd-questions@FreeBSD.ORG, dpd@arrow.lan.raffles-it.com Subject: Re: pkg_info - get only names of installed packages Message-ID: <200106251313.f5PDDAk04929@arrow.lan.raffles-it.com> In-Reply-To: Message from Erik Trulsson <ertr1013@student.uu.se> of "Mon, 25 Jun 2001 02:06:35 %2B0200." <20010625020634.A66928@student.uu.se>
next in thread | previous in thread | raw e-mail | index | archive | help
--==_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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106251313.f5PDDAk04929>