[nycbug-talk] pkg_add

Marc Spitzer mspitzer
Wed Feb 9 20:58:02 EST 2005


> >     PKG_TMPDIR  Staging directory for installing packages, defaults to
> >                 /var/tmp.  Set to directory with lots of free disk if you run
> >                 out of space when installing a binary package.
> >
> > now before that in the   options/switches section;
> >
> >      -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.
> >
> > freebsd 5.3 is similar in content,  reading the fine manual is useful.
> >
> > marc
> 
> I read the manual, but don't understand what I should do.

did you read the man page for mktemp(3) ?  it explains what is going
on fo temp file/directory creation.

What you need to do is set the env var to a string that represents a
directory followed by a filename followed by a dot followed by a bunch
of 'X's to say put random stuff here.

marc




More information about the talk mailing list