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:
...
     The environment variables PKG_TMPDIR and TMPDIR, in that order, are taken
     to name temporary directories where pkg_add will attempt to create its
     staging area in.  If these variables are not present or if the directo-
     ries named lack sufficient space, then pkg_add will use the first of
     /var/tmp, /tmp or /usr/tmp with sufficient space.
...

>
> > - 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):
...
     -t template
             Use template as the input to mktemp(3) when creating a ``staging
             area''.  By default, this is the string /var/tmp/instmp.XXXXXX,
             but it may be necessary to override it in the situation where
             space in your /var/tmp directory is limited.  Be sure to leave
             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 directo-
             ries for package file installation; often this is /usr.
...

Enlightend

S.Mazerski


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to