Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
redirecting emerge to my hard drive instead of website/ftp
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
nalf38
n00b
n00b


Joined: 22 Nov 2003
Posts: 27

PostPosted: Sat Nov 22, 2003 9:09 pm    Post subject: redirecting emerge to my hard drive instead of website/ftp Reply with quote

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
View user's profile Send private message
Chickpea
l33t
l33t


Joined: 03 Jun 2002
Posts: 846
Location: Vancouver WA

PostPosted: Sat Nov 22, 2003 9:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
idl
Retired Dev
Retired Dev


Joined: 24 Dec 2002
Posts: 1728
Location: Nottingham, UK

PostPosted: Sat Nov 22, 2003 10:07 pm    Post subject: Reply with quote

Code:
DISTDIR="/mnt/cdrom" emerge -vp foo
Back to top
View user's profile Send private message
nalf38
n00b
n00b


Joined: 22 Nov 2003
Posts: 27

PostPosted: Sun Nov 23, 2003 2:32 am    Post subject: Thanks! Reply with quote

You guys rock. Copying the file to /usr/portage/distfiles did the trick.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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