View previous topic :: View next topic |
Author |
Message |
nalf38 n00b
Joined: 22 Nov 2003 Posts: 27
|
Posted: Sat Nov 22, 2003 9:09 pm Post subject: redirecting emerge to my hard drive instead of website/ftp |
|
|
OK, I DO have an internet connection, but it's dial-up, and for really large packages like openoffice it's not convenient for me to install via the internet. I'm new to Gentoo, and on other distros I've used I usually just go to a friends house to download large packages, burn it to CD, and then bring it home.
So, is it possible for me to make portage look for a package like open-office-bin on my hard drive or cdrom instead of attempting to download it? How would I do that?
Thanks for any help.
Nick Larson |
|
Back to top |
|
|
Chickpea l33t
Joined: 03 Jun 2002 Posts: 846 Location: Vancouver WA
|
Posted: Sat Nov 22, 2003 9:14 pm Post subject: |
|
|
Yes, you can...there is an option for emerge called --usepkg and you can point it to where you would like for it get packages from.. You will need to do man emerge to get the full details.
Also, I believe if packages are already in /usr/portage/distfiles (the directory where downloaded packages are placed) portage wont go to the internet. So you have a couple options, either leave it on the cd and point portage to the cd or put in the /usr/portage/distfiles directory.
hope it helps |
|
Back to top |
|
|
idl Retired Dev
Joined: 24 Dec 2002 Posts: 1728 Location: Nottingham, UK
|
Posted: Sat Nov 22, 2003 10:07 pm Post subject: |
|
|
Code: | DISTDIR="/mnt/cdrom" emerge -vp foo |
|
|
Back to top |
|
|
nalf38 n00b
Joined: 22 Nov 2003 Posts: 27
|
Posted: Sun Nov 23, 2003 2:32 am Post subject: Thanks! |
|
|
You guys rock. Copying the file to /usr/portage/distfiles did the trick. |
|
Back to top |
|
|
|