вторник, 7 августа 2012 г.

Solaris 11 Update

Скачать последний SRU.
Далее кусок из  Quick Start Guide


The basic steps to use the repository copy for updating your local system is as follows. Note that "sruN" represents the number of this SRU (e.g. sru1):
1. Mount the ISO image as a filesystem:
$ mount -F hsfs {full_path_to}/sol-11-1111-sruN-incr-repo.iso /mnt
2. Add the publisher to the system:
$ pkg set-publisher -G '*' -g file:///mnt/repo solaris
3. Perform the upgrade:
$ pkg update

Теперь сделаем все же свой репозитарий:

1.   #zfs create rpool/export/repoSolaris11
2. #zfs set atime=off rpool/export/repoSolaris11
3. #pkgrepo create /export/repoSolaris11
4. #mount -F hsfs /distr/sol-11_1-repo-full.iso /mnt
5. #rsync -aP /mnt/repo/ /export/repoSolaris11
6. #umount /mnt
7. #pkgrepo -s /export/repoSolaris11 refresh

для доступа к репозитарию по NFS:
#zfs set share=name=s11repo,path=/export/repoSolaris11,prot=nfs rpool/export/repoSolaris11
#zfs set sharenfs=on rpool/export/repoSolaris11
на клиенте:
#pkg set-publisher -G '*' -M '*' -g /net/HOST_IP_or_NAME/export/repoSolaris11/ solaris

для доступа к репозитарию по http:
#svccfg -s application/pkg/server setprop pkg/inst_root=/export/repoSolaris11
#svccfg -s application/pkg/server setprop pkg/readonly=true
#svcprop -p pkg/inst_root application/pkg/server
#svccfg -s application/pkg/server setprop pkg/port=PORT_NUMBER (1111 например)
#svcadm refresh application/pkg/server
#svcadm enable application/pkg/server
на клиенте:
#pkg set-publisher -G '*' -M '*' -g http://IP:PORT_NUMBER/ solaris


Если вышли обновления для репозитария (SRU), качаем ISO (например называться будет так  sol-11_1_9_5_1-incr-repo.iso) и :
#mount -F hsfs /distr/sol-11_1_9_5_1-incr-repo.iso /mnt
#pkgrecv -s /mnt/repo/ -d /export/repoSolaris11 '*'
#pkgrepo -s /export/repoSolaris11 refresh

или:

#mount -F hsfs /distr/sol-11_1_9_5-incr-repo.iso /mnt
#rsync -aP /mnt/repo
#pkgrepo rebuild -s /export/repoSolaris11


Смотрим что у нас с репозитарием:
#pkgrepo info -s /export/repoSolaris11
#pkgrepo get -s /export/repoSolaris11



Update: Для того, что бы обновить Solaris 11.2 на 11.3 из локального репозитория, нужно установить этот новый репо, как выше указано задать верный publisher и:
#pkg list -af entire
#pkg update --accept entire
 


Комментариев нет: