How to install VMware ESXi patches from the CLI

    Determine ESXi version, build version
    vmware -vl

    Determine the name of the image profiles available in the patch bundle. Note that the filename must be the full file spec.

    esxcli software sources profile list -d /vmfs/volumes/<filename>

    Put host in maintenance mode
    vim-cmd hostsvc/maintenance_mode_enter

    Apply patch. Note that the file name must be the full file spec.
    esxcli software profile update -d /vmfs/volumes/<filename> -p <profile_name>

    Determine next reboot image profile
    esxcli software profile get --rebooting-image

    Exit maintenance mode
    vim-cmd hostsvc/maintenance_mode_exit

    No questions yet.