Небольшой лог о том, как поднять IPS-репозиторий на OpenSolaris.
lofiadm -a /export/home/keremet/repo1.iso
mount -F hsfs /dev/lofi/1 /mnt/
zfs create rpool/export/home/keremet/repo
zfs set compression=on rpool/export/home/keremet/repo
rsync -aPq /mnt/repo/ /export/home/keremet/repo/
lofiadm -a /export/home/keremet/repo2.iso
umount /mnt/
mount -F hsfs /dev/lofi/2 /mnt/
rsync -aPq /mnt/repo/ /export/home/keremet/repo/
umount /mnt/
keremet@opensolaris:~# svccfg -s application/pkg/server setprop pkg/inst_root=/export/home/keremet/repo
keremet@opensolaris:~# svccfg -s application/pkg/server setprop pkg/readonly=true
keremet@opensolaris:~# svccfg -s application/pkg/server setprop pkg/port=10000
keremet@opensolaris:~# cp repo/cfg_cache /etc/0906_cfg_cache
keremet@opensolaris:~# svccfg -s application/pkg/server setprop pkg/cfg_file=/etc/0906_cfg_cache
gedit /etc/0906_cfg_cache
origins = http://localhost:10000/
svcadm refresh application/pkg/server
svcadm enable application/pkg/server
keremet@opensolaris:~# pkg set-publisher -O http://localhost:10000/ opensolaris.org
Speak Your Mind