La commande suivante met à jour pkg update tous les packages vers les versions les plus récentes disponibles autorisées car aucun package n'est spécifié. La commande met à jour à la version la plus récente disponible du package avec la mise à niveau de l'image parce que le paramètre pkg.depend.install-hold du package upgradectrl occasionne la mise à jour du package pkg:/entire quand le package upgradectrl est mis à jour. L'image est mise à niveau vers la version d'incorporation pkg:/entire spécifiée dans la nouvelle incorporation upgradectrl.
$ pkg update --be-name s11u1_10
Packages to remove: 1
Packages to update: 186
Mediators to change: 1
Create boot environment: Yes
Create backup boot environment: No
Planning linked: 0/1 done; 1 working: zone:z1
Linked image 'zone:z1' output:
| Packages to remove: 1
| Packages to install: 3
| Packages to update: 73
| Mediators to change: 1
| Services to change: 3
`
Planning linked: 1/1 done
DOWNLOAD PKGS FILES XFER (MB) SPEED
Completed 187/187 16139/16139 507.9/507.9 562k/s
Downloading linked: 0/1 done; 1 working: zone:z1
Downloading linked: 1/1 done
PHASE ITEMS
Removing old actions 1473/1473
Installing new actions 3451/3451
Updating modified actions 16378/16378
Updating package state database Done
Updating package cache 187/187
Updating image state Done
Creating fast lookup database Done
Reading search index Done
Building new search index 851/851
Executing linked: 0/1 done; 1 working: zone:z1
Executing linked: 1/1 done
A clone of s11u1_0 exists and has been updated and activated.
On the next boot the Boot Environment s11u1_10 will be
mounted on '/'. Reboot when ready to switch to this updated BE.
Vérifiez que le BE en cours n'est pas modifié et que le nouveau BE contient les packages mis à jour.
$ pkg list entire upgradectrl NAME (PUBLISHER) VERSION IFO entire 0.5.11-0.175.1.0.0.24.2 i-- upgradectrl (site) 1.0 i-- $ beadm mount s11u1_10 /mnt $ pkg -R /mnt list entire upgradectrl NAME (PUBLISHER) VERSION IFO entire 0.5.11-0.175.1.10.0.6.0 i-- upgradectrl (site) 1.10 i-- $ beadm unmount s11u1_10