Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Jun 2003 01:38:43 -0400
From:      parv <parv_fm@emailgroups.net>
To:        Adam <blueeskimo@gmx.net>
Cc:        FreeBSD User Questions List <freebsd-questions@freebsd.org>
Subject:   Re: Listing installed ports without any ports dependent on it
Message-ID:  <20030603053843.GA6249@moo.holy.cow>
In-Reply-To: <1054613446.16970.83.camel@jake>
References:  <1054590763.16970.5.camel@jake> <20030603001607.GA3613@moo.holy.cow> <1054610958.16970.79.camel@jake> <1054612388.316.12.camel@gyros> <1054613446.16970.83.camel@jake>

next in thread | previous in thread | raw e-mail | index | archive | help

in message <1054613446.16970.83.camel@jake>,
wrote Adam thusly...
>
> On Mon, 2003-06-02 at 23:53, Joe Marcus Clarke wrote:
> 
> > It's not Python, but this script should work.
> >
> > #!/bin/sh
> >
> > for i in `pkg_info | cut -f1 -d ' '`; do
> >    if [ -z "`pkg_info -qR ${i}`" ]; then
> >       echo ${i}
> >    fi
> > done
> 
> Excellent! This does exactly what I was after! 

Above program gives the exact result as the one i posted, except one
non essential "pkgdb" line.  What did i miss?


  - Parv

-- 
A programmer, budding Unix system administrator, and amateur photographer
ISO employment.  Details...

  http://www103.pair.com/parv/work/



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