Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jun 2001 01:42:47 -0400
From:      parv <parv_@yahoo.com>
To:        David Dooley <dpd@raffles-it.com>
Cc:        Erik Trulsson <ertr1013@student.uu.se>, 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:  <20010626014247.A535@moo.holy.cow>
In-Reply-To: <200106251313.f5PDDAk04929@arrow.lan.raffles-it.com>; from dpd@raffles-it.com on Mon, Jun 25, 2001 at 02:13:10PM %2B0100
References:  <ertr1013@student.uu.se> <200106251313.f5PDDAk04929@arrow.lan.raffles-it.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010626014247.A535>