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

Jerry McAllister jerrymc at
Mon Nov 5 07:59:34 PST 2007

On Mon, Nov 05, 2007 at 02:36:00AM +0000, Pollywog wrote:

> On Monday 05 November 2007 02:04:39 Robert Huff wrote:
> > Brett Davidson writes:
> > >  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?
> >
> > 	dir /var/d/pkg | grep <portname>
> My Linux systems have a "dir" command but my FreeBSD does not.
> Is there something I need to install?

Yes, just install your own alias.
For example, in my .cshrc file for the accounts I use I put:

  alias dir ls -lAF

and then I have a dir.

I also alias ls to:

  alias ls ls -F

and lo to: 

  alias lo logout

and numerous others.
That is the normal way of creating these simple things.


> _______________________________________________
> freebsd-questions at mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at"

More information about the freebsd-questions mailing list