def METHOD_NAME(self, name=None):
    """
    Upgrades all packages of the system.
    Optionally, upgrade individual packages.
    :param name: Optional parameter wildcard spec to upgrade
    :type name: str
    """
    if not name:
        u_cmd = self.base_command + " update -l"
    else:
        u_cmd = self.base_command + " " + "update" + " " + name
    try:
        process.system(u_cmd, sudo=True)
        return True
    except process.CmdError:
        return False