def update(kernel=False):
    """
    Upgrade all packages, skip obsoletes if ``obsoletes=0`` in ``yum.conf``.

    Exclude *kernel* upgrades by default.
    """
    manager = MANAGER
    cmds = {'yum -y --color=never': {False: '--exclude=kernel* update', True: 'update'}}
    cmd = cmds[manager][kernel]
    run_as_root(locals() % "%(manager)s %(cmd)s")
dataset/ETHPy150Open ronnix/fabtools/fabtools/rpm.py/update/swapped operands of `%`