View previous topic :: View next topic |
Author |
Message |
smithstephenl n00b
Joined: 13 Jan 2006 Posts: 9
|
Posted: Sat Jan 14, 2006 6:01 am Post subject: install packages from cd |
|
|
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 |
|
|
lnxz Guru
Joined: 03 Jul 2005 Posts: 472 Location: Earth
|
Posted: Sat Jan 14, 2006 6:48 am Post subject: |
|
|
use the "-K" emerge option. PKGDIR has to point to the folder where the packages are, though. |
|
Back to top |
|
|
smithstephenl n00b
Joined: 13 Jan 2006 Posts: 9
|
Posted: Mon Jan 16, 2006 3:38 am Post subject: |
|
|
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 |
|
|
lnxz Guru
Joined: 03 Jul 2005 Posts: 472 Location: Earth
|
Posted: Mon Jan 16, 2006 4:16 am Post subject: |
|
|
First edit /etc/make.conf.
Set the variable PKGDIR to point to the folder where you're currently storing the packages.
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 |
|
|
|