Listing installed ports without any ports dependent on it

parv parv_fm at emailgroups.net
Mon Jun 2 22:35:34 PDT 2003


in message <1054613446.16970.83.camel at 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/



More information about the freebsd-questions mailing list