If there was the script wouldn't be needed.Andrey said:I found small script:
# for p in `\ls /var/db/pkg`; do pkg_create -b ${p}; done
is there a standard command for this operation ?
Andrey said:So how can I make INDEX file from /var/db/pkg ?
[CMD=""]# cache-init[/CMD] cache-init works only with the /usr/ports?
from /var/db/pkg it can not do INDEX?
Even if I set
[CMD=""]# setenv PORTSDIR /var/db/pkg[/CMD]
Andrey said:I found small script:
# for p in `\ls /var/db/pkg`; do pkg_create -b ${p}; done
is there a standard command for this operation ?
and then how to create an INDEX file ?
Andrey said:Yes, I trying to duplicate the system, and simultaneously stored all packages on a CD, FLASH or local FTP... for faster installation than via the internet...
$PORTSDIR/packages is the defaultphoenix said:
- Create /usr/ports/packages/ directory
- Set PACKAGES=/usr/ports/packages in your shell's environment
# for p in `\ls /var/db/pkg`; do echo pkg_add -i ${p}.tbz >> install; done; chmod +x install
pkg_add -i ImageMagick-6.6.1.10.tbz
pkg_add -i ORBit2-2.14.18_1.tbz
pkg_add -i Terminal-0.4.5.tbz
pkg_add -i Thunar-1.0.2.tbz
pkg_add -i a2ps-a4-4.13b_4.tbz
pkg_add -i aalib-1.4.r5_5.tbz
...
Andrey said:# for p in `\ls /var/db/pkg`; do echo pkg_add -i ${p}.tbz >> install; done; chmod +x install
Code:pkg_add -i ImageMagick-6.6.1.10.tbz pkg_add -i ORBit2-2.14.18_1.tbz pkg_add -i Terminal-0.4.5.tbz pkg_add -i Thunar-1.0.2.tbz pkg_add -i a2ps-a4-4.13b_4.tbz pkg_add -i aalib-1.4.r5_5.tbz ...
# pkg_add -i packagedir/*
# file packagedir -exec pkg_add -i {} \+
no your commands do not work...wblock said:Seems like you could just do
# pkg_add -i packagedir/*
or maybe
# file packagedir -exec pkg_add -i {} \+
(Untested, and not sure about the correctness of using -i and installing packages out of dependency order.)