From owner-freebsd-questions Fri Sep 15 3:56:53 2000 Delivered-To: freebsd-questions@freebsd.org Received: from laguna.tiscalinet.it (laguna.tiscalinet.it [195.130.224.86]) by hub.freebsd.org (Postfix) with ESMTP id ACE0C37B424 for ; Fri, 15 Sep 2000 03:56:51 -0700 (PDT) Received: from [62.11.104.189] (62.11.104.189) by laguna.tiscalinet.it; 15 Sep 2000 12:56:10 +0200 Received: (qmail 1069 invoked by uid 1000); 15 Sep 2000 10:52:51 -0000 Date: Fri, 15 Sep 2000 12:52:51 +0200 From: Francesco Casadei To: Kresimir Kumericki Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Size of a port? Message-ID: <20000915125251.A1046@goku.kasby> Mail-Followup-To: Kresimir Kumericki , freebsd-questions@FreeBSD.ORG References: <20000913213200.A63451@phy.hr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20000913213200.A63451@phy.hr>; from kkumer@phy.hr on Wed, Sep 13, 2000 at 09:32:00PM +0200 X-Operating-System: FreeBSD 4.1-STABLE i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Sep 13, 2000 at 09:32:00PM +0200, Kresimir Kumericki wrote: > Is there an easy way to find out the size of an installed > port? > I suppose I could write a script that would parse > /var/db/pkg//+CONTENTS, and add the sizes of all > files but there has to be an easier way. (Or somebody must > have already written such a script.) > > > -- > Kresimir Kumericki kkumer@phy.hr http://www.phy.hr/~kkumer/ > Theoretical Physics Department, University of Zagreb, Croatia > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > end of the original message Use pkg_info with the option -s . Example: casimiro> pkg_info -s mutt-1.2.5 Information for mutt-1.2.5: Package Size: 5021 (1K-blocks) See pkg_info(1) man page for more information. Francesco Casadei P.S. I'm running 4.1-STABLE. I don't know if -s works under 4.1-RELEASE and below. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message