LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 12-29-2011, 09:23 AM   #1
VisionIncision
Member
 
Registered: Dec 2011
Location: London, UK
Distribution: Slackware64 14
Posts: 100

Rep: Reputation: Disabled
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
 
Old 12-29-2011, 09:27 AM   #2
mlpa
Member
 
Registered: May 2008
Location: Aveiro
Distribution: Slackware
Posts: 503

Rep: Reputation: 38
Hello, yes you can run the following command
Quote:
mount -o bind /tmp <new_path>/tmp
 
Old 12-29-2011, 09:27 AM   #3
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,501

Rep: Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912
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).
 
Old 12-29-2011, 09:30 AM   #4
VisionIncision
Member
 
Registered: Dec 2011
Location: London, UK
Distribution: Slackware64 14
Posts: 100

Original Poster
Rep: Reputation: Disabled
Ok cool,
Thanks a lot.

Regards,
Jack
 
Old 12-29-2011, 09:31 AM   #5
JimBrewster
Member
 
Registered: Feb 2010
Location: usa:/dev/random
Distribution: Slackware, Salix
Posts: 237

Rep: Reputation: 59
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
 
1 members found this post helpful.
  


Reply

Tags
slackbuild, slackware, tmp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Change tmp directory driftboy Linux - Newbie 7 12-07-2009 01:56 PM
Can't login, says tmp directory full but tmp file is empty! Could be linked to MySQL? bethanlowder Fedora 7 09-25-2009 08:17 AM
why a non root user can't change the permissions of /tmp ? raj_hcl1986@rediffma Linux - Newbie 4 11-09-2008 04:58 AM
Fetchmail dumps emails in /tmp -- how do I change this? Makar Linux - Software 4 10-19-2008 08:09 AM
[KDE] Ignoring LANG? / How to change localization temporarily? FnordPerfect Linux - Desktop 1 01-06-2007 11:25 AM


All times are GMT -5. The time now is 03:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration