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

Jonathan Horne freebsd at
Sun Nov 4 18:57:36 PST 2007

Quoting RW <fbsd06 at>:

> On Mon, 05 Nov 2007 14:53:48 +1300
> 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?
> see pkg_version[1]
> _______________________________________________

after i update my ports, and i want to see what currently needs to be updated:

pkg_version -v|grep needs

this will give you a run down of everything that has a newer version  
in your ports tree.
Jonathan Horne
freebsd at

This message was sent using IMP, the Internet Messaging Program.

More information about the freebsd-questions mailing list