Наконец-то заработал репозиторий pkg.opensolaris.org и я успешно обновил пакеты на своем Preview.
Количество пакетов увеличилось - желающие могут посмотреть список на странице репозитория и поставить новые пакеты (общее количество на данный момент - 1263!). Пока известно, что пофиксена утилита
svr4 pkgadd, чтобы обновить ее, надо выполнить следующие команды:
# pkg refresh
# pkg install SUNWipkg
# pkg install SUNWpkgcmds
Вывод pkg status до обновления:
И после:
Чтобы обновить SUNWcsl, мне пришлось отмонтировать /lib/libc.so.1 (pkg ругался на device busy).
Желающие могут обновить систему, следуя инструкции, составленной Бартом Смаалдерсом из Solaris Kernel Performance Group:
*** How to upgrade your Indiana bits by hand.****
In the future, the pkg command will take care of
this for you. For now, it's a manual process,
since the pkg command doesn't yet do image
management.
Assuming you're running as-installed Indiana bits:
1. snapshot and clone your root and opt filesystems,
and mount them spliced togetther under /mnt:
# zfs snapshot zpl_slim/root@2
# zfs clone zpl_slim/root@2 zpl_slim/root2
# zfs set mountpoint=/mnt zpl_slim/root2
# zfs snapshot zpl_slim/opt@2
# zfs clone zpl_slim/opt@2 zpl_slim/opt2
# zfs set mountpoint=/mnt/opt zpl_slim/opt2
2. edit your /zpl_slim/boot/grub/menu.lst file and prepend:
title OpenSolaris Developer Preview snv_75a X86 UPDATED
bootfs zpl_slim/root2
kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS
module$ /platform/i86pc/$ISADIR/boot_archive
3. Add this line to your /etc/vfstab to mount /opt in legacy mode:
zpl_slim/opt - /opt zfs - yes -
4. Fix the vfstab in the new root image (/mnt/etc/vfstab) to mount root2
and opt2:
zpl_slim/root2 - / zfs - no -
zpl_slim/opt2 - /opt zfs - yes -
5. edit /var/pkg/cfg_cache to point to ipkg.sfbay:80
rather than pkg.opensolaris.org:80. cp /var/pkg/cfg_cache
/mnt/var/pkg/cfg_cache
6. get a fresh copy of the catalog from the new server w/
# pkg refresh
7. get a better copy of the pkg command:
# pkg install SUNWipkg
8. update the image's catalog as well:
# pkg -R /mnt refresh
9. update all the software on your new image:
# pkg -R /mnt image-update
10. update the boot archive (not strictly needed this time, but a good
habit to get into until this is automated):
# bootadm update-archive -R /mnt
11. fix the mountpoints:
# zfs set mountpoint=legacy zpl_slim/opt2
# zfs set mountpoint=legacy zpl_slim/root2
# zfs set mountpoint=legacy zpl_slim/opt
12. reboot and enjoy the fresh new bits
Пункт 5 можно пропустить, так как ipkg.sfbay не доступен простым смертным.
Удачи!
P.S. Поставил сегодня новые пакеты - теперь можно выбирать язык интерфейса в GDM (русский выглядит кошмарно с нынешними фонтами - впрочем, я всегда пользую английский). Клавиатуру пока однако заставить печатать по-русски не удалось.