Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Nov 2007 10:56:11 -0500
From:      Jerry McAllister <jerrymc@msu.edu>
To:        Pollywog <lists-fbsd@shadypond.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Is there a way to compare what is in the ports tree with what is installed?
Message-ID:  <20071105155611.GC62364@gizmo.acns.msu.edu>
In-Reply-To: <200711050236.00987.lists-fbsd@shadypond.com>
References:  <472E77AC.9060200@net24.co.nz> <18222.31287.897833.3437@jerusalem.litteratus.org> <200711050236.00987.lists-fbsd@shadypond.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

////jerry

> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"



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