code: def update(name):
      '''
      Install a named update.
  
      :param str name: The name of the of the update to install.
  
      :return: True if successfully updated, otherwise False
      :rtype: bool
  
      CLI Example:
  
      .. code-block:: bash
  
         salt '*' softwareupdate.update <update-name>
      '''
      if not update_available(name):
          raise SaltInvocationError('Update not available: {0}'.format(name))
  
      cmd = ['softwareupdate', '--install', name]
      salt.utils.mac_utils.execute_return_success(cmd)
  
      return not update_available(namef update(name):
      '''
      Install a named update.
  
      :param str name: The name of the of the update to install.
  
      :return: True if successfully updated, otherwise False
      :rtype: bool
  
      CLI Example:
  
      .. code-block:: bash
  
         salt '*' softwareupdate.update <update-name>
      '''
      if not update_available(name):
          raise SaltInvocationError('Update not available: {0}'.format(name))
  
      cmd = ['softwareupdate', '--install', name]
      salt.utils.mac_utils.execute_return_success(cmd)
  
      return not update_available(name)
docs: Install a named update.
  
      :param str name: The name of the of the update to install.
  
      :return: True if successfully updated, otherwise False
      :rtype: bool
  
      CLI Example:
  
      .. code-block:: bash
  
         salt '*' softwareupdate.update <update-name>