code: def upgrade(options=None, fatal=False, dist=False):
      
      cmd = ['yum', '--assumeyes']
      if options is not None:
          cmd.extend(options)
      cmd.append('upgrade')
      log("Upgrading with options: {}".format(options))
      _run_yum_command(cmd, fatal)
docs: Upgrade all packages.