From owner-freebsd-questions Thu Jul 18 17:37:27 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F81437B400 for ; Thu, 18 Jul 2002 17:37:23 -0700 (PDT) Received: from post.webmailer.de (natwar.webmailer.de [192.67.198.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5041F43E3B for ; Thu, 18 Jul 2002 17:37:22 -0700 (PDT) (envelope-from smazerski@yahoo.co.jp) Received: from ianb.local (pD95176CA.dip.t-dialin.net [217.81.118.202]) by post.webmailer.de (8.9.3/8.8.7) with ESMTP id CAA24296 for ; Fri, 19 Jul 2002 02:37:19 +0200 (MEST) Content-Type: text/plain; charset="iso-8859-1" From: Steve Mazerski To: freebsd-questions@freebsd.org Subject: A: How big /var ? Or: too small for the xemacs package? Date: Fri, 19 Jul 2002 02:38:50 +0200 X-Mailer: KMail [version 1.4] References: <200207182205.56717.smazerski@yahoo.co.jp> <200207190202.12709.smazerski@yahoo.co.jp> In-Reply-To: <200207190202.12709.smazerski@yahoo.co.jp> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200207190238.50089.smazerski@yahoo.co.jp> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Me again.. Just had a call from the RTFM daemon: > To answer my own questions... > > I moved /var to a larger partition (see > http://www.freebsddiary.org/file-system-full.php for a HOW-TO) > > > Questions: > > - I presume pkg_add puts temporary files in /var. Is this normal / > > sensible? > > pkg_add uses /var/tmp. (any reason why not /tmp?). The manpage says: =2E.. The environment variables PKG_TMPDIR and TMPDIR, in that order, are = taken to name temporary directories where pkg_add will attempt to create i= ts staging area in. If these variables are not present or if the direc= to- ries named lack sufficient space, then pkg_add will use the first of /var/tmp, /tmp or /usr/tmp with sufficient space. =2E.. > > > - what would be a reasonable ball park figure for /var? > > On a desktop system a good couple of hundred MB? Even then it might > be prudent to symlink /var/tmp to a larger partion when installing > bloatware ;-) Or do this (again from the man page): =2E.. -t template Use template as the input to mktemp(3) when creating a ``sta= ging area''. By default, this is the string /var/tmp/instmp.XXXX= XX, but it may be necessary to override it in the situation wher= e space in your /var/tmp directory is limited. Be sure to lea= ve some number of `X' characters for mktemp(3) to fill in with = a unique ID. You can get a performance boost by setting the staging area template to reside on the same disk partition as target dire= cto- ries for package file installation; often this is /usr. =2E.. Enlightend S.Mazerski To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message