Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
install packages from cd
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
smithstephenl
n00b
n00b


Joined: 13 Jan 2006
Posts: 9

PostPosted: Sat Jan 14, 2006 6:01 am    Post subject: install packages from cd Reply with quote

I was wondering if anyone knew of a painless way to install multiple packages from cd (that arer now on hd in bz2 form). I know that there has to be a way to unzip and install them automatically without having to do each one individually but I am not sure how to go about it.
Back to top
View user's profile Send private message
lnxz
Guru
Guru


Joined: 03 Jul 2005
Posts: 472
Location: Earth

PostPosted: Sat Jan 14, 2006 6:48 am    Post subject: Reply with quote

use the "-K" emerge option. PKGDIR has to point to the folder where the packages are, though.
Back to top
View user's profile Send private message
smithstephenl
n00b
n00b


Joined: 13 Jan 2006
Posts: 9

PostPosted: Mon Jan 16, 2006 3:38 am    Post subject: Reply with quote

I have tried to find the exact code i am supposed to use but i have had no luck. is there a refernce i can use or do you know the code?
Back to top
View user's profile Send private message
lnxz
Guru
Guru


Joined: 03 Jul 2005
Posts: 472
Location: Earth

PostPosted: Mon Jan 16, 2006 4:16 am    Post subject: Reply with quote

First edit /etc/make.conf.
Set the variable PKGDIR to point to the folder where you're currently storing the packages.
Code:
PKGDIR=<folder>

Obviously you need to substitute <folder> with the real path.
When that is done, run (as root or with root permissions)
Code:
emerge -vKa <pkg1> <pkg2> etc. etc.

This will force emerge to use the packages in PKGDIR.
If you've done any additional compression, you need to undo that for this to work, though.
Something like
Code:
for pkg in <pkgdir>/* ; do tar -x<j/z>vf $pkg} ; done

should work.
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