Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] How can I change temp installation folder?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
arcee
n00b
n00b


Joined: 24 Jul 2010
Posts: 10
Location: Nova Cronum, Cybertron

PostPosted: Tue Aug 24, 2010 9:37 pm    Post subject: [SOLVED] How can I change temp installation folder? Reply with quote

Hi! I have Gentoo installed on a 7 GB partition of my hard disk. Currently I have 1.6 GB free space left and I want to install a big package that requires more than 6 GB of space during the installation. So what I want is to specify a different temporary folder from /var/tmp/portage for the package to use. How can I do that? Thanks!

Last edited by arcee on Tue Aug 24, 2010 10:07 pm; edited 1 time in total
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3224

PostPosted: Tue Aug 24, 2010 9:41 pm    Post subject: Reply with quote

I would mount the larger partition to someplace and symlink /var/tmp/portage to where you need it, like this:
Code:
mount /dev/sdx /mnt/bigdrive
rm -rf /var/tmp/portage
ln -s /mnt/bigdrive /var/tmp/portage

When you are done I believe you can just delete the symlink, and on the next emerge portage will recreate /var/tmp/portage.
Back to top
View user's profile Send private message
rh1
Guru
Guru


Joined: 10 Apr 2010
Posts: 501

PostPosted: Tue Aug 24, 2010 9:46 pm    Post subject: Reply with quote

You could temporarly add:
Code:
PORTAGE_TMPDIR="/path/to/dir"

to /etc/make.conf

You might also just be able to do this for one time use though i haven't tested it it:
Code:
PORTAGE_TMPDIR="/path/to/dir" emerge package_name
Back to top
View user's profile Send private message
arcee
n00b
n00b


Joined: 24 Jul 2010
Posts: 10
Location: Nova Cronum, Cybertron

PostPosted: Tue Aug 24, 2010 10:07 pm    Post subject: Reply with quote

Using a symlink returned error when I tried to compile: Access denied... Don't know why, but specifying another temp directory in make.conf worked. Thank you both :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum