Is there a way to compare what is in the ports tree with what is installed?

Giorgos Keramidas keramida at
Mon Nov 5 03:55:47 PST 2007

On 2007-11-05 14:53, Brett Davidson <brett at> wrote:
> ie. If I had a particular version of the ports tree on a server, how
> could I check to see if any of the programs in that tree were actually
> installed?
> Is there a simple command or sequence of commands to do this?

Try running the pkg_version(1) utility.  For instance, running it here,
I can see output like this:

        ksh$ pkg_version | grep -v '=$'
        ORBit2                              <
        aalib                               <

More information about the freebsd-questions mailing list