Migrate or power off the virtual machines running on the host and put the host into maintenance mode. The host can be put into maintenance mode from the command line with:
# vim-cmd hostsvc/maintenance_mode_enter
Navigate to the directory on the datastore where the patch file was uploaded to and verify that the file exists:
# cd /vmfs/volumes/Datastore/DirectoryName # ls
Where Datastore is the datastore name where the patch file was uploaded to, and DirectoryName is the directory you created on the datastore.
Install or Update a patch on the host using these esxcli commands:
To install or update a .zip file, use the -d option. To install or update a .vib file use the -v option.
Using Install overwrites the existing packages in the system with contents of the patch you are installing, including installing new packages and removing old packages. The Install command can be used to downgrade a system. Using Update selectively overwrites existing packages that are being up-revisioned and ignores new packages. The Update command can be used to downgrade a system (only for image profiles) when the --allow-downgrade flag is set.