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
 
LinkBack Search this Thread
Old 12-29-2011, 08:23 AM   #1
VisionIncision
Member
 
Registered: Dec 2011
Location: London, UK
Distribution: Slackware64 14
Posts: 98

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, 08:27 AM   #2
mlpa
Member
 
Registered: May 2008
Location: Aveiro
Distribution: Slackware
Posts: 467

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

Rep: Reputation: 816Reputation: 816Reputation: 816Reputation: 816Reputation: 816Reputation: 816Reputation: 816
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, 08:30 AM   #4
VisionIncision
Member
 
Registered: Dec 2011
Location: London, UK
Distribution: Slackware64 14
Posts: 98

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

Regards,
Jack
 
Old 12-29-2011, 08: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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Change tmp directory driftboy Linux - Newbie 7 12-07-2009 12: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 07:17 AM
why a non root user can't change the permissions of /tmp ? raj_hcl1986@rediffma Linux - Newbie 4 11-09-2008 03:58 AM
Fetchmail dumps emails in /tmp -- how do I change this? Makar Linux - Software 4 10-19-2008 07:09 AM
[KDE] Ignoring LANG? / How to change localization temporarily? FnordPerfect Linux - Desktop 1 01-06-2007 10:25 AM


All times are GMT -5. The time now is 01:47 PM.

Main Menu
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