From owner-freebsd-questions@FreeBSD.ORG Mon Nov 5 11:55:47 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D84316A417 for ; Mon, 5 Nov 2007 11:55:47 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 9192E13C49D for ; Mon, 5 Nov 2007 11:55:46 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (vader.bytemobile-rio.ondsl.gr [83.235.57.37]) (authenticated bits=128) by igloo.linux.gr (8.14.1/8.14.1/Debian-9) with ESMTP id lA5Bsm3r010016 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 5 Nov 2007 13:55:14 +0200 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.1/8.14.1) with ESMTP id lA5Bsg30008920; Mon, 5 Nov 2007 13:54:42 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.1/8.14.1/Submit) id lA5BsfgT008919; Mon, 5 Nov 2007 13:54:41 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Mon, 5 Nov 2007 13:54:41 +0200 From: Giorgos Keramidas To: Brett Davidson Message-ID: <20071105115441.GB2093@kobe.laptop> References: <472E77AC.9060200@net24.co.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <472E77AC.9060200@net24.co.nz> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.491, required 5, ALL_TRUSTED -1.80, AWL -0.09, BAYES_00 -2.60, FB_WORD1_END_DOLLAR 1.00) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: Is there a way to compare what is in the ports tree with what is installed? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Nov 2007 11:55:47 -0000 On 2007-11-05 14:53, Brett Davidson 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 < [...]