LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Temporarily change /tmp (http://www.linuxquestions.org/questions/slackware-14/temporarily-change-tmp-921057/)

VisionIncision 12-29-2011 08:23 AM

Temporarily change /tmp
 
Hi all,
Basically, I am trying to build some software using SlackBuilds, but I do not have sufficient space on /tmp.

Is there a way of temporarily redirecting /tmp or to build the package in an alternate directory?

Regards,
Jack

mlpa 12-29-2011 08:27 AM

Hello, yes you can run the following command
Quote:

mount -o bind /tmp <new_path>/tmp

ponce 12-29-2011 08:27 AM

just pass to the build script the variable TMP, like
Code:

TMP=/my/path ./script.SlackBuild
same thing for sbopkg (for permanent use with it you can also set it in /etc/sbopkg/sbopkg.conf).

VisionIncision 12-29-2011 08:30 AM

Ok cool,
Thanks a lot.

Regards,
Jack

JimBrewster 12-29-2011 08:31 AM

There should be a line in every slackbuild like this:
Code:

TMP=${TMP:-/tmp/SBo}
If I'm not mistaken, you can override the $TMP variable by something like this (depending on your shell):
Code:

# export TMP=/alternate/tmp/path
Then it should apply to all your slackbuild'ing until root logs out.

Or for each slackbuild:
Code:

# TMP=/alternate/tmp/path ./foo.Slackbuild


All times are GMT -5. The time now is 04:11 AM.