View previous topic :: View next topic |
Author |
Message |
arcee n00b
Joined: 24 Jul 2010 Posts: 10 Location: Nova Cronum, Cybertron
|
Posted: Tue Aug 24, 2010 9:37 pm Post subject: [SOLVED] How can I change temp installation folder? |
|
|
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 |
|
|
mikegpitt Advocate
Joined: 22 May 2004 Posts: 3224
|
Posted: Tue Aug 24, 2010 9:41 pm Post subject: |
|
|
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 |
|
|
rh1 Guru
Joined: 10 Apr 2010 Posts: 501
|
Posted: Tue Aug 24, 2010 9:46 pm Post subject: |
|
|
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 |
|
|
arcee n00b
Joined: 24 Jul 2010 Posts: 10 Location: Nova Cronum, Cybertron
|
Posted: Tue Aug 24, 2010 10:07 pm Post subject: |
|
|
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 |
|
|
|